diff --git a/index.d.ts b/index.d.ts index 2bb1a2e37..f7f6da669 100644 --- a/index.d.ts +++ b/index.d.ts @@ -1362,25 +1362,25 @@ declare namespace Eris { DISCONNECT: 13; }; CommandOptionTypes: { - SUB_COMMAND: 1; - SUB_COMMAND_GROUP: 2; - STRING: 3; - INTEGER: 4; - BOOLEAN: 5; - USER: 6; - CHANNEL: 7; - ROLE: 8; - MENTIONABLE: 9; - }; - CommandPermissionTypes: { - ROLE: 1; - USER: 2; - }; - CommandTypes: { - COMMAND: 1; - USER: 2; - MESSAGE: 3; - }; + SUB_COMMAND: 1; + SUB_COMMAND_GROUP: 2; + STRING: 3; + INTEGER: 4; + BOOLEAN: 5; + USER: 6; + CHANNEL: 7; + ROLE: 8; + MENTIONABLE: 9; + }; + CommandPermissionTypes: { + ROLE: 1; + USER: 2; + }; + CommandTypes: { + COMMAND: 1; + USER: 2; + MESSAGE: 3; + }; } // Selfbot @@ -1686,25 +1686,16 @@ declare namespace Eris { createGuild(name: string, options?: CreateGuildOptions): Promise; createGuildCommand(guildID: string, command: SlashCommandStructure): Promise; createGuildEmoji(guildID: string, options: EmojiOptions, reason?: string): Promise; - deleteCommand(commandID: string): Promise; createGuildFromTemplate(code: string, name: string, icon?: string): Promise; - deleteGuildCommand(guildID: string, commandID: string): Promise; - editCommand(commandID: string, command: SlashCommandStructure): Promise; createGuildTemplate(guildID: string, name: string, description?: string | null): Promise; - editCommandPermissions(guildID: string, commandID: string, permissions: SlashCommandPermissions[]): Promise; - editGuildCommand(guildID: string, commandID: string, command: SlashCommandStructure): Promise; createMessage(channelID: string, content: MessageContent, file?: MessageFile | MessageFile[]): Promise; - getCommand(commandID: string): Promise; - getCommandPermissions(guildID: string, commandID: string): Promise; createRole(guildID: string, options?: RoleOptions | Role, reason?: string): Promise; - getCommands(): Promise; - getGuildCommand(guildID: string, commandID: string): Promise; crosspostMessage(channelID: string, messageID: string): Promise; - getGuildCommandPermissions(guildID: string): Promise; - getGuildCommands(guildID: string): Promise; deleteChannel(channelID: string, reason?: string): Promise; deleteChannelPermission(channelID: string, overwriteID: string, reason?: string): Promise; + deleteCommand(commandID: string): Promise; deleteGuild(guildID: string): Promise; + deleteGuildCommand(guildID: string, commandID: string): Promise; deleteGuildDiscoverySubcategory(guildID: string, categoryID: string, reason?: string): Promise; deleteGuildEmoji(guildID: string, emojiID: string, reason?: string): Promise; deleteGuildIntegration(guildID: string, integrationID: string): Promise; @@ -1735,7 +1726,10 @@ declare namespace Eris { reason?: string ): Promise; editChannelPosition(channelID: string, position: number, options?: EditChannelPositionOptions): Promise; + editCommand(commandID: string, command: SlashCommandStructure): Promise; + editCommandPermissions(guildID: string, commandID: string, permissions: SlashCommandPermissions[]): Promise; editGuild(guildID: string, options: GuildOptions, reason?: string): Promise; + editGuildCommand(guildID: string, commandID: string, command: SlashCommandStructure): Promise; editGuildDiscovery(guildID: string, options?: DiscoveryOptions): Promise; editGuildEmoji( guildID: string, @@ -1789,6 +1783,9 @@ declare namespace Eris { getChannel(channelID: string): AnyChannel; getChannelInvites(channelID: string): Promise; getChannelWebhooks(channelID: string): Promise; + getCommand(commandID: string): Promise; + getCommandPermissions(guildID: string, commandID: string): Promise; + getCommands(): Promise; getDiscoveryCategories(): Promise; getDMChannel(userID: string): Promise; getEmojiGuild(emojiID: string): Promise; @@ -1798,6 +1795,9 @@ declare namespace Eris { getGuildAuditLogs(guildID: string, limit?: number, before?: string, actionType?: number, userID?: string): Promise; getGuildBan(guildID: string, userID: string): Promise<{ reason?: string; user: User }>; getGuildBans(guildID: string): Promise<{ reason?: string; user: User }[]>; + getGuildCommand(guildID: string, commandID: string): Promise; + getGuildCommandPermissions(guildID: string): Promise; + getGuildCommands(guildID: string): Promise; getGuildDiscovery(guildID: string): Promise; /** @deprecated */ getGuildEmbed(guildID: string): Promise; @@ -2092,15 +2092,8 @@ declare namespace Eris { bulkEditCommands(commands: SlashCommandStructure[]): Promise; createChannel(name: string): Promise; createChannel(name: string, type: 0, options?: CreateChannelOptions): Promise; - createCommand(command: SlashCommandStructure): Promise; createChannel(name: string, type: 2, options?: CreateChannelOptions): Promise; - deleteCommand(commandID: string): Promise; - editCommand(commandID: string, command: SlashCommandStructure): Promise; createChannel(name: string, type: 4, options?: CreateChannelOptions): Promise; - editCommandPermissions(permissions: SlashCommandPermissions[]): Promise; - getCommand(commandID: string): Promise; - getCommands(): Promise; - getCommandPermissions(): Promise; createChannel(name: string, type: 5, options?: CreateChannelOptions | string): Promise; createChannel(name: string, type: 6, options?: CreateChannelOptions | string): Promise; createChannel(name: string, type: 13, options?: CreateChannelOptions | string): Promise; @@ -2119,10 +2112,12 @@ declare namespace Eris { createChannel(name: string, type: 13, reason?: string, options?: CreateChannelOptions | string): Promise; /** @deprecated */ createChannel(name: string, type?: number, reason?: string, options?: CreateChannelOptions | string): Promise; + createCommand(command: SlashCommandStructure): Promise; createEmoji(options: { image: string; name: string; roles?: string[] }, reason?: string): Promise; createRole(options: RoleOptions | Role, reason?: string): Promise; createTemplate(name: string, description?: string | null): Promise; delete(): Promise; + deleteCommand(commandID: string): Promise; deleteDiscoverySubcategory(categoryID: string, reason?: string): Promise; deleteEmoji(emojiID: string, reason?: string): Promise; deleteIntegration(integrationID: string): Promise; @@ -2133,6 +2128,8 @@ declare namespace Eris { dynamicIconURL(format?: ImageFormat, size?: number): string; dynamicSplashURL(format?: ImageFormat, size?: number): string; edit(options: GuildOptions, reason?: string): Promise; + editCommand(commandID: string, command: SlashCommandStructure): Promise; + editCommandPermissions(permissions: SlashCommandPermissions[]): Promise; editDiscovery(options?: DiscoveryOptions): Promise; editEmoji(emojiID: string, options: { name: string; roles?: string[] }, reason?: string): Promise; editIntegration(integrationID: string, options: IntegrationOptions): Promise; @@ -2151,6 +2148,9 @@ declare namespace Eris { getAuditLogs(limit?: number, before?: string, actionType?: number, userID?: string): Promise; getBan(userID: string): Promise<{ reason?: string; user: User }>; getBans(): Promise<{ reason?: string; user: User }[]>; + getCommand(commandID: string): Promise; + getCommandPermissions(): Promise; + getCommands(): Promise; getDiscovery(): Promise; /** @deprecated */ getEmbed(): Promise;