From dda5ee2e9f0839d3e42d25114ae1b47355cdfd27 Mon Sep 17 00:00:00 2001 From: Adam Gauthier Date: Wed, 9 Jun 2021 05:43:57 -0400 Subject: [PATCH] refactor: guildAvailable, typingStop from Constants (#4861) Both of these events no longer exist and should not be exposed in Constants. Typings have been adjusted to correspond to Constants.Events. --- src/util/Constants.js | 2 -- typings/index.d.ts | 4 ++-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/util/Constants.js b/src/util/Constants.js index 23741b321..6204e707e 100644 --- a/src/util/Constants.js +++ b/src/util/Constants.js @@ -258,7 +258,6 @@ exports.Events = { GUILD_DELETE: 'guildDelete', GUILD_UPDATE: 'guildUpdate', GUILD_UNAVAILABLE: 'guildUnavailable', - GUILD_AVAILABLE: 'guildAvailable', GUILD_MEMBER_ADD: 'guildMemberAdd', GUILD_MEMBER_REMOVE: 'guildMemberRemove', GUILD_MEMBER_UPDATE: 'guildMemberUpdate', @@ -295,7 +294,6 @@ exports.Events = { VOICE_BROADCAST_SUBSCRIBE: 'subscribe', VOICE_BROADCAST_UNSUBSCRIBE: 'unsubscribe', TYPING_START: 'typingStart', - TYPING_STOP: 'typingStop', WEBHOOKS_UPDATE: 'webhookUpdate', INTERACTION_CREATE: 'interaction', ERROR: 'error', diff --git a/typings/index.d.ts b/typings/index.d.ts index 9b1ce4696..c98e6f954 100644 --- a/typings/index.d.ts +++ b/typings/index.d.ts @@ -553,7 +553,6 @@ declare module 'discord.js' { RATE_LIMIT: 'rateLimit'; INVALID_REQUEST_WARNING: 'invalidRequestWarning'; CLIENT_READY: 'ready'; - RESUMED: 'resumed'; APPLICATION_COMMAND_CREATE: 'applicationCommandCreate'; APPLICATION_COMMAND_DELETE: 'applicationCommandDelete'; APPLICATION_COMMAND_UPDATE: 'applicationCommandUpdate'; @@ -589,15 +588,16 @@ declare module 'discord.js' { MESSAGE_REACTION_ADD: 'messageReactionAdd'; MESSAGE_REACTION_REMOVE: 'messageReactionRemove'; MESSAGE_REACTION_REMOVE_ALL: 'messageReactionRemoveAll'; + MESSAGE_REACTION_REMOVE_EMOJI: 'messageReactionRemoveEmoji'; USER_UPDATE: 'userUpdate'; PRESENCE_UPDATE: 'presenceUpdate'; + VOICE_SERVER_UPDATE: 'voiceServerUpdate'; VOICE_STATE_UPDATE: 'voiceStateUpdate'; VOICE_BROADCAST_SUBSCRIBE: 'subscribe'; VOICE_BROADCAST_UNSUBSCRIBE: 'unsubscribe'; TYPING_START: 'typingStart'; WEBHOOKS_UPDATE: 'webhookUpdate'; INTERACTION_CREATE: 'interaction'; - RECONNECTING: 'reconnecting'; ERROR: 'error'; WARN: 'warn'; DEBUG: 'debug';