import { GatewayEventNames, InteractionTypes, MFALevel } from "../typings/enums.js"; import { ApplicationRoleConnectionMetadata, AutoModerationRule, ClientOptions, CreateChannelInvitePayload, EditChannelPermissionsPayload, GroupDMAddRecipientPayload, MessagePayload, RawApplicationData, RawChannelData, StartThreadInForumPayload, StartThreadPayload, ListArchivedThreadsPayload, CreateGuildEmojiPayload, RawChannelMessageOptions, CreateGuildPayload, RawGuildData, ModifyGuildChannelPositionsPayload, ListGuildMembersPayload, SearchGuildMembersPayLoad, AddGuildMemberPayload, ModifyGuildMemberPayload, CreateGuildBanPayload, GuildRolePayload, GetGuildPruneCountPayload, BeginGuildPrunePayload, ModifyGuildWidgetPayload, ModifyGuildWelcomeScreenPayload, ModifyCurrentUserVoiceStatePayload, ModifyUserVoiceStatePayload, InteractionResponsePayload, CreateApplicationCommandPayload, RawGuildApplicationCommandPermissions } from "../typings/interface.js"; import { Camelize, ClientEvents, ImageFormat, ImageSize, Snowflake, WidgetImageStyle, integer } from "../typings/types.js"; import Websocket from "../websocket/index.js"; import Api from "../utils/api.js"; import QueueManager from "../request/queue.js"; import { Channel, Emoji, Guild, Invite, Member, Message, Role, User } from "../classes/index.js"; export default class Client { #private; ws: Websocket; api: typeof Api; readyData: { user: User; guilds: { id: string; unavailable?: boolean | undefined; }[]; resumeGatewayUrl: string; shard: [number, number] | undefined; sessionId: string; application: Camelize; }; queue: QueueManager; constructor(options: ClientOptions); get token(): `${string}.${string}.${string}`; get intents(): number; get options(): ClientOptions; get user(): User; on(event: T, callback: ClientEvents): void; get __on__(): Partial>; emit(event: GatewayEventNames, ...args: unknown[]): void; getApplicationRoleConnectionMetadataRecords(appId?: Snowflake): Promise; updateApplicationRoleConnectionMetadataRecords(data: ApplicationRoleConnectionMetadata, appId?: Snowflake): Promise; getGuildAuditLogs(guildId: Snowflake): Promise; listAutoModerationRules(guildId: Snowflake): Promise; getAutoModerationRule(guildId: Snowflake, ruleId: Snowflake): Promise; createAutoModerationRule(guildId: Snowflake, data: AutoModerationRule, reason?: string): Promise; updateAutoModerationRule(guildId: Snowflake, ruleId: Snowflake, data: AutoModerationRule, reason?: string): Promise; deleteAutoModerationRule(guildId: Snowflake, ruleId: Snowflake, reason?: string): Promise; getChannel(channelId: Snowflake): Promise; updateChannel(channelId: Snowflake, data: Camelize, reason?: string): Promise; deleteChannel(channelId: Snowflake, reason?: string): Promise; getChannelMessages(channelId: Snowflake, options?: RawChannelMessageOptions): Promise; getChannelMessage(channelId: Snowflake, messageId: Snowflake): Promise; createMessage(channelId: Snowflake, data: MessagePayload, reason?: string): Promise; crosspostMessage(channelId: Snowflake, messageId: Snowflake, reason?: string): Promise; deleteMessage(channelId: Snowflake, messageId: Snowflake, reason?: string): Promise; createReaction(channelId: Snowflake, messageId: Snowflake, emoji: string): Promise; deleteOwnReaction(channelId: Snowflake, messageId: Snowflake, emoji: string): Promise; deleteReaction(channelId: Snowflake, messageId: Snowflake, userId: Snowflake, emoji: string): Promise; getReactions(channelId: Snowflake, messageId: Snowflake, emoji: string, options?: { after?: Snowflake; limit?: number; }): Promise; deleteAllReactions(channelId: Snowflake, messageId: Snowflake): Promise; deleteAllReactionsForEmoji(channelId: Snowflake, messageId: Snowflake, emoji: string): Promise; editMessage(channelId: Snowflake, messageId: Snowflake, data: MessagePayload): Promise; deleteBulkMessages(channelId: Snowflake, messageIds: Snowflake[], reason?: string): Promise; editChannelPermissions(channelId: Snowflake, overwriteId: Snowflake, data: EditChannelPermissionsPayload, reason?: string): Promise; getChannelInvites(channelId: Snowflake): Promise; createChannelInvite(channelId: Snowflake, data: CreateChannelInvitePayload, reason?: string): Promise; deleteChannelPermission(channelId: Snowflake, overwriteId: Snowflake, reason?: string): Promise; followAnnouncementChannel(channelId: Snowflake, webhookChannelId: Snowflake): Promise; triggerTypingIndicator(channelId: Snowflake): Promise; getPinnedMessages(channelId: Snowflake): Promise; pinMessage(channelId: Snowflake, messageId: Snowflake, reason?: string): Promise; unpinMessage(channelId: Snowflake, messageId: Snowflake, reason?: string): Promise; groupDMAddRecipient(channelId: Snowflake, userId: Snowflake, data: GroupDMAddRecipientPayload): Promise; groupDMRemoveRecipient(channelId: Snowflake, userId: Snowflake): Promise; startThreadFromMessage(channelId: Snowflake, messageId: Snowflake, data: StartThreadPayload, reason?: string): Promise; startThreadWithoutMessage(channelId: Snowflake, data: StartThreadPayload, reason?: string): Promise; startThreadInForum(channelId: Snowflake, data: StartThreadInForumPayload, reason?: string): Promise; joinThread(channelId: Snowflake): Promise; addThreadMember(channelId: Snowflake, userId: Snowflake): Promise; leaveThread(channelId: Snowflake): Promise; removeThreadMember(channelId: Snowflake, userId: Snowflake): Promise; getThreadMember(channelId: Snowflake, userId: Snowflake, withMember?: boolean): Promise<{ id: bigint; userId: bigint; joinTimestamp: Date; flags: any; member: Member | null; }>; listThreadMembers(channelId: Snowflake, includeGuildMember?: boolean): Promise; listPublicArchivedThreads(channelId: Snowflake, data?: ListArchivedThreadsPayload): Promise<{ threads: any; members: any; hasMore: any; }>; listPrivateArchivedThreads(channelId: Snowflake, data?: ListArchivedThreadsPayload): Promise<{ threads: any; members: any; hasMore: any; }>; listJoinedPrivateArchivedThreads(channelId: Snowflake, data?: ListArchivedThreadsPayload): Promise<{ threads: any; members: any; hasMore: any; }>; listGuildEmojis(guildId: Snowflake): Promise; getGuildEmoji(guildId: Snowflake, emojiId: Snowflake): Promise; createGuildEmoji(guildId: Snowflake, data: CreateGuildEmojiPayload): Promise; modifyGuildEmoji(guildId: Snowflake, emojiId: Snowflake, data: Omit): Promise; deleteGuildEmoji(guildId: Snowflake, emojiId: Snowflake): Promise; createGuild(data: CreateGuildPayload): Promise; getGuildPreview(guildId: Snowflake): Promise; modifyGuild(guildId: Snowflake, data: Camelize, reason?: string): Promise; deleteGuild(guildId: Snowflake): Promise; getGuild(guildId: Snowflake): Promise; getGuildChannels(guildId: Snowflake): Promise; createGuildChannel(guildId: Snowflake, data: Camelize): Promise; modifyGuildChannelPositions(guildId: Snowflake, data: ModifyGuildChannelPositionsPayload): Promise; listActiveGuildThreads(guildId: Snowflake): Promise; getGuildMember(guildId: Snowflake, userId: Snowflake): Promise; listGuildMembers(guildId: Snowflake, data?: ListGuildMembersPayload): Promise; searchGuildMembers(guildId: Snowflake, data: SearchGuildMembersPayLoad): Promise; addGuildMember(guildId: Snowflake, userId: Snowflake, data: AddGuildMemberPayload): Promise; modifyGuildMember(guildId: Snowflake, userId: Snowflake, data: ModifyGuildMemberPayload): Promise; modifyCurrentUserNick(guildId: Snowflake, nick?: string, reason?: string): Promise; addGuildMemberRole(guildId: Snowflake, userId: Snowflake, roleId: Snowflake, reason?: string): Promise; removeGuildMemberRole(guildId: Snowflake, userId: Snowflake, roleId: Snowflake, reason?: string): Promise; removeGuildMember(guildId: Snowflake, userId: Snowflake, reason?: string): Promise; getGuildBans(guildId: Snowflake): Promise; getGuildBan(guildId: Snowflake, userId: Snowflake): Promise<{ reason: any; user: User; } | null>; createGuildBan(guildId: Snowflake, userId: Snowflake, data: CreateGuildBanPayload, reason?: string): Promise; removeGuildBan(guildId: Snowflake, userId: Snowflake, reason?: string): Promise; getGuildRoles(guildId: Snowflake): Promise; createGuildRole(guildId: Snowflake, data: GuildRolePayload): Promise; modifyGuildRolePositions(guildId: Snowflake, roleId: Snowflake, position: integer, reason?: string): Promise; modifyGuildRole(guildId: Snowflake, roleId: Snowflake, data: GuildRolePayload, reason?: string): Promise; deleteGuildRole(guildId: Snowflake, roleId: Snowflake, reason?: string): Promise; modifyGuildMFALevel(guildId: Snowflake, level: MFALevel, reason?: string): Promise; getGuildPruneCount(guildId: Snowflake, data?: GetGuildPruneCountPayload): Promise; beginGuildPrune(guildId: Snowflake, data?: BeginGuildPrunePayload, reason?: string): Promise; getGuildVoiceRegions(guildId: Snowflake): Promise; getGuildInvites(guildId: Snowflake): Promise; getGuildIntegrations(guildId: Snowflake): Promise; deleteGuildIntegration(guildId: Snowflake, integrationId: Snowflake, reason?: string): Promise; getGuildWidgetSettings(guildId: Snowflake): Promise; modifyGuildWidget(guildId: Snowflake, data: ModifyGuildWidgetPayload, reason?: string): Promise; getGuildWidget(guildId: Snowflake): Promise; getGuildVanityUrl(guildId: Snowflake): Promise; getGuildWidgetImage(guildId: Snowflake, style?: WidgetImageStyle): Promise; getGuildWelcomeScreen(guildId: Snowflake): Promise; modifyGuildWelcomeScreen(guildId: Snowflake, data: ModifyGuildWelcomeScreenPayload, reason?: string): Promise; getGuildOnBoarding(guildId: Snowflake): Promise; modifyCurrentUserVoiceState(guildId: Snowflake, data: ModifyCurrentUserVoiceStatePayload): Promise; modifyUserVoiceState(guildId: Snowflake, userId: Snowflake, data: ModifyUserVoiceStatePayload): Promise; getUser(userId: Snowflake): Promise; getUrlFromHash(hash: string, type: "avatar" | "banner" | "icon" | "splash", size?: ImageSize, format?: ImageFormat, dynamic?: boolean): string; createInteractionResponse(id: Snowflake, token: string, type: InteractionTypes, data?: InteractionResponsePayload): Promise; getOriginalInteractionResponse(token: string): Promise; editOriginalInteractionResponse(token: string, data: InteractionResponsePayload): Promise; deleteOriginalInteractionResponse(token: string): Promise; createFollowupMessage(token: string, data: InteractionResponsePayload): Promise; getFollowupMessage(token: string, messageId: Snowflake): Promise; editFollowupMessage(token: string, messageId: Snowflake, data: InteractionResponsePayload): Promise; deleteFollowupMessage(token: string, messageId: Snowflake): Promise; getGlobalApplicationCommands(withLocalization?: boolean): Promise[]>; createGlobalApplicationCommand(data: CreateApplicationCommandPayload): Promise | undefined>; getGlobalApplicationCommand(commandId: Snowflake): Promise | undefined>; editGlobalApplicationCommand(commandId: Snowflake, data: Omit): Promise | undefined>; deleteGlobalApplicationCommand(commandId: Snowflake): Promise; bulkOverwriteGlobalApplicationCommands(data: CreateApplicationCommandPayload[]): Promise[]>; getGuildApplicationCommands(guildId: Snowflake, withLocalization?: boolean): Promise[]>; createGuildApplicationCommand(guildId: Snowflake, data: CreateApplicationCommandPayload): Promise | undefined>; getGuildApplicationCommand(guildId: Snowflake, commandId: Snowflake): Promise | undefined>; editGuildApplicationCommand(guildId: Snowflake, commandId: Snowflake, data: Omit): Promise | undefined>; deleteGuildApplicationCommand(guildId: Snowflake, commandId: Snowflake): Promise; bulkOverwriteGuildApplicationCommands(guildId: Snowflake, data: CreateApplicationCommandPayload[]): Promise[]>; getGuildApplicationCommandPermissions(guildId: Snowflake): Promise[]>; getApplicationCommandPermissions(guildId: Snowflake, commandId: Snowflake): Promise>; } //# sourceMappingURL=index.d.ts.map