///
import { EventEmitter } from "events";
import Embed from "./structures/Embed";
import { AllowedMentions } from "./structures/AllowedMentions";
import { MessageReference } from "./structures/MessageReference";
import ActionRow from "./structures/ActionRow";
import { Attachment } from "./structures/Attachment";
import ApplicationCommandObject from "./structures/ApplicationCommandObject";
import { GuildMember } from "./structures/GuildMember";
import Emoji from "./structures/Emoji";
import { InteractionReplyData } from "./structures/InteractionReplyDataType";
export default class Client extends EventEmitter {
private readonly token;
publicKey: string;
port: number;
endpoint: string;
additionalEndpoints?: {
name: string;
endpoint: string;
method: string;
}[];
app: any;
private requests;
rest: any;
jsonrest: any;
constructor(params: ParameterObject);
_validateParams(params: any): void;
login(): void;
newMessage(channelId: string, data: MessageCreateData): Promise;
editMessage(channelId: string, messageId: string, data: MessageCreateData): Promise;
deleteMessage(channelId: string, messageId: string): Promise;
getMessage(channelId: string, messageId: string): Promise;
getDMChannel(userId: string): Promise;
registerCommands(applicationId: string, commands: ApplicationCommandObject[], guildId?: string): Promise;
getMember(guildId: string, memberId: string): Promise;
setMember(guildId: string, memberId: string, data: GuildMemberModifyData): Promise;
createEmoji(guildId: string, emoji: EmojiObject): Promise>;
getEmoji(guildid: string, id?: string): Promise;
findEmoji(guildid: string, name: string): Promise;
removeEmoji(guildid: string, id: string): Promise;
editWebhookMessage(applicationId: string, webhookMessageToken: string, data: InteractionReplyData, messageId?: string): Promise;
deleteWebhookMessage(applicationId: string, webhookMessageToken: string, messageId?: string): Promise;
_formatData(data: any): any;
}
export declare class ParameterObject {
token: string;
publicKey: string;
port: number;
endpoint: string;
additionalEndpoints?: {
name: string;
endpoint: string;
method: string;
}[];
}
export declare class MessageCreateData {
content?: string;
nonce?: number | string;
tts?: boolean;
embeds?: Embed[];
allowedMentions?: AllowedMentions;
message_reference?: MessageReference;
components?: ActionRow[];
sticker_ids?: string[];
files?: null;
payload_json?: null;
attachments?: Attachment[];
suppressEmbeds?: boolean;
}
export declare class GuildMemberModifyData {
nick?: string;
roles?: string[];
mute?: boolean;
deaf?: boolean;
channel_id?: string;
communication_disabled_until?: string;
}
export declare class EmojiObject {
name: string;
url: string;
roles?: string[];
}
//# sourceMappingURL=Client.d.ts.map