refactor: Deprecate application command events (#6937)

This commit is contained in:
Jiralite
2021-11-02 13:43:30 +00:00
committed by GitHub
parent f43140abac
commit 28688e27d5
5 changed files with 21 additions and 3 deletions

View File

@@ -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);
};

View File

@@ -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);
};

View File

@@ -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);
};