mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-14 02:23: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} Error error
|
||||||
* @property {string} Message message
|
* @property {string} Message message
|
||||||
* @property {string} Ready ready
|
* @property {string} Ready ready
|
||||||
* @property {string} Reconnecting reconnecting
|
|
||||||
* @property {string} Resume resume
|
* @property {string} Resume resume
|
||||||
* @property {string} Spawn spawn
|
* @property {string} Spawn spawn
|
||||||
*/
|
*/
|
||||||
@@ -23,7 +22,6 @@ module.exports = {
|
|||||||
Error: 'error',
|
Error: 'error',
|
||||||
Message: 'message',
|
Message: 'message',
|
||||||
Ready: 'ready',
|
Ready: 'ready',
|
||||||
Reconnecting: 'reconnecting',
|
|
||||||
Resume: 'resume',
|
Resume: 'resume',
|
||||||
Spawn: 'spawn',
|
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',
|
Warn = 'warn',
|
||||||
Debug = 'debug',
|
Debug = 'debug',
|
||||||
CacheSweep = 'cacheSweep',
|
CacheSweep = 'cacheSweep',
|
||||||
ShardDisconnect = 'shardDisconnect',
|
|
||||||
ShardError = 'shardError',
|
|
||||||
ShardReconnecting = 'shardReconnecting',
|
|
||||||
ShardReady = 'shardReady',
|
|
||||||
ShardResume = 'shardResume',
|
|
||||||
Invalidated = 'invalidated',
|
Invalidated = 'invalidated',
|
||||||
Raw = 'raw',
|
|
||||||
StageInstanceCreate = 'stageInstanceCreate',
|
StageInstanceCreate = 'stageInstanceCreate',
|
||||||
StageInstanceUpdate = 'stageInstanceUpdate',
|
StageInstanceUpdate = 'stageInstanceUpdate',
|
||||||
StageInstanceDelete = 'stageInstanceDelete',
|
StageInstanceDelete = 'stageInstanceDelete',
|
||||||
@@ -5388,7 +5382,6 @@ export enum ShardEvents {
|
|||||||
Error = 'error',
|
Error = 'error',
|
||||||
Message = 'message',
|
Message = 'message',
|
||||||
Ready = 'ready',
|
Ready = 'ready',
|
||||||
Reconnecting = 'reconnecting',
|
|
||||||
Resume = 'resume',
|
Resume = 'resume',
|
||||||
Spawn = 'spawn',
|
Spawn = 'spawn',
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user