mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
refactor!: exclude removed events from their enum (#10547)
BREAKING CHANGE: Removed the following members from `Events` enum: `Raw`, `ShardResume`, `ShardError`, `ShardReady`, `ShardReconnecting`, `ShardResume`, `ShardDisconnect` BREAKING CHANGE: Removed `Reconnecting` from `ShardEvents` enum
This commit is contained in:
@@ -7,7 +7,6 @@
|
||||
* @property {string} Error error
|
||||
* @property {string} Message message
|
||||
* @property {string} Ready ready
|
||||
* @property {string} Reconnecting reconnecting
|
||||
* @property {string} Resume resume
|
||||
* @property {string} Spawn spawn
|
||||
*/
|
||||
@@ -23,7 +22,6 @@ module.exports = {
|
||||
Error: 'error',
|
||||
Message: 'message',
|
||||
Ready: 'ready',
|
||||
Reconnecting: 'reconnecting',
|
||||
Resume: 'resume',
|
||||
Spawn: 'spawn',
|
||||
};
|
||||
|
||||
7
packages/discord.js/typings/index.d.ts
vendored
7
packages/discord.js/typings/index.d.ts
vendored
@@ -5362,13 +5362,7 @@ export enum Events {
|
||||
Warn = 'warn',
|
||||
Debug = 'debug',
|
||||
CacheSweep = 'cacheSweep',
|
||||
ShardDisconnect = 'shardDisconnect',
|
||||
ShardError = 'shardError',
|
||||
ShardReconnecting = 'shardReconnecting',
|
||||
ShardReady = 'shardReady',
|
||||
ShardResume = 'shardResume',
|
||||
Invalidated = 'invalidated',
|
||||
Raw = 'raw',
|
||||
StageInstanceCreate = 'stageInstanceCreate',
|
||||
StageInstanceUpdate = 'stageInstanceUpdate',
|
||||
StageInstanceDelete = 'stageInstanceDelete',
|
||||
@@ -5388,7 +5382,6 @@ export enum ShardEvents {
|
||||
Error = 'error',
|
||||
Message = 'message',
|
||||
Ready = 'ready',
|
||||
Reconnecting = 'reconnecting',
|
||||
Resume = 'resume',
|
||||
Spawn = 'spawn',
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user