diff --git a/src/client/websocket/handlers/APPLICATION_COMMAND_CREATE.js b/src/client/websocket/handlers/APPLICATION_COMMAND_CREATE.js index 158033b5d..17af7d58e 100644 --- a/src/client/websocket/handlers/APPLICATION_COMMAND_CREATE.js +++ b/src/client/websocket/handlers/APPLICATION_COMMAND_CREATE.js @@ -12,6 +12,7 @@ module.exports = (client, { d: data }) => { * Emitted when a guild application command is created. * @event Client#applicationCommandCreate * @param {ApplicationCommand} command The command which was created + * @deprecated See {@link https://github.com/discord/discord-api-docs/issues/3690 this issue} for more information. */ client.emit(Events.APPLICATION_COMMAND_CREATE, command); }; diff --git a/src/client/websocket/handlers/APPLICATION_COMMAND_DELETE.js b/src/client/websocket/handlers/APPLICATION_COMMAND_DELETE.js index d046461a4..4b09274dd 100644 --- a/src/client/websocket/handlers/APPLICATION_COMMAND_DELETE.js +++ b/src/client/websocket/handlers/APPLICATION_COMMAND_DELETE.js @@ -14,6 +14,7 @@ module.exports = (client, { d: data }) => { * Emitted when a guild application command is deleted. * @event Client#applicationCommandDelete * @param {ApplicationCommand} command The command which was deleted + * @deprecated See {@link https://github.com/discord/discord-api-docs/issues/3690 this issue} for more information. */ client.emit(Events.APPLICATION_COMMAND_DELETE, command); }; diff --git a/src/client/websocket/handlers/APPLICATION_COMMAND_UPDATE.js b/src/client/websocket/handlers/APPLICATION_COMMAND_UPDATE.js index d959b503d..730d7f1e3 100644 --- a/src/client/websocket/handlers/APPLICATION_COMMAND_UPDATE.js +++ b/src/client/websocket/handlers/APPLICATION_COMMAND_UPDATE.js @@ -14,6 +14,7 @@ module.exports = (client, { d: data }) => { * @event Client#applicationCommandUpdate * @param {?ApplicationCommand} oldCommand The command before the update * @param {ApplicationCommand} newCommand The command after the update + * @deprecated See {@link https://github.com/discord/discord-api-docs/issues/3690 this issue} for more information. */ client.emit(Events.APPLICATION_COMMAND_UPDATE, oldCommand, newCommand); }; diff --git a/src/util/Constants.js b/src/util/Constants.js index f51579eda..701a1d259 100644 --- a/src/util/Constants.js +++ b/src/util/Constants.js @@ -128,8 +128,17 @@ exports.Events = { API_RESPONSE: 'apiResponse', API_REQUEST: 'apiRequest', CLIENT_READY: 'ready', + /** + * @deprecated See {@link https://github.com/discord/discord-api-docs/issues/3690 this issue} for more information. + */ APPLICATION_COMMAND_CREATE: 'applicationCommandCreate', + /** + * @deprecated See {@link https://github.com/discord/discord-api-docs/issues/3690 this issue} for more information. + */ APPLICATION_COMMAND_DELETE: 'applicationCommandDelete', + /** + * @deprecated See {@link https://github.com/discord/discord-api-docs/issues/3690 this issue} for more information. + */ APPLICATION_COMMAND_UPDATE: 'applicationCommandUpdate', GUILD_CREATE: 'guildCreate', GUILD_DELETE: 'guildDelete', @@ -220,9 +229,9 @@ exports.PartialTypes = keyMirror(['USER', 'CHANNEL', 'GUILD_MEMBER', 'MESSAGE', * The type of a WebSocket message event, e.g. `MESSAGE_CREATE`. Here are the available events: * * READY * * RESUMED - * * APPLICATION_COMMAND_CREATE - * * APPLICATION_COMMAND_DELETE - * * APPLICATION_COMMAND_UPDATE + * * APPLICATION_COMMAND_CREATE (deprecated) + * * APPLICATION_COMMAND_DELETE (deprecated) + * * APPLICATION_COMMAND_UPDATE (deprecated) * * GUILD_CREATE * * GUILD_DELETE * * GUILD_UPDATE diff --git a/typings/index.d.ts b/typings/index.d.ts index e156f2475..619ceaff1 100644 --- a/typings/index.d.ts +++ b/typings/index.d.ts @@ -3556,8 +3556,11 @@ export interface ChannelWebhookCreateOptions { export interface ClientEvents { apiResponse: [request: APIRequest, response: Response]; apiRequest: [request: APIRequest]; + /** @deprecated See [this issue](https://github.com/discord/discord-api-docs/issues/3690) for more information. */ applicationCommandCreate: [command: ApplicationCommand]; + /** @deprecated See [this issue](https://github.com/discord/discord-api-docs/issues/3690) for more information. */ applicationCommandDelete: [command: ApplicationCommand]; + /** @deprecated See [this issue](https://github.com/discord/discord-api-docs/issues/3690) for more information. */ applicationCommandUpdate: [oldCommand: ApplicationCommand | null, newCommand: ApplicationCommand]; channelCreate: [channel: GuildChannel]; channelDelete: [channel: DMChannel | GuildChannel]; @@ -3799,8 +3802,11 @@ export interface ConstantsEvents { API_RESPONSE: 'apiResponse'; API_REQUEST: 'apiRequest'; CLIENT_READY: 'ready'; + /** @deprecated See [this issue](https://github.com/discord/discord-api-docs/issues/3690) for more information. */ APPLICATION_COMMAND_CREATE: 'applicationCommandCreate'; + /** @deprecated See [this issue](https://github.com/discord/discord-api-docs/issues/3690) for more information. */ APPLICATION_COMMAND_DELETE: 'applicationCommandDelete'; + /** @deprecated See [this issue](https://github.com/discord/discord-api-docs/issues/3690) for more information. */ APPLICATION_COMMAND_UPDATE: 'applicationCommandUpdate'; GUILD_CREATE: 'guildCreate'; GUILD_DELETE: 'guildDelete';