mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-18 12:33:30 +01:00
Update typings for renamed shard events
This commit is contained in:
12
typings/index.d.ts
vendored
12
typings/index.d.ts
vendored
@@ -187,11 +187,11 @@ declare module 'discord.js' {
|
|||||||
public on(event: 'voiceStateUpdate', listener: (oldState: VoiceState | undefined, newState: VoiceState) => void): this;
|
public on(event: 'voiceStateUpdate', listener: (oldState: VoiceState | undefined, newState: VoiceState) => void): this;
|
||||||
public on(event: 'webhookUpdate', listener: (channel: TextChannel) => void): this;
|
public on(event: 'webhookUpdate', listener: (channel: TextChannel) => void): this;
|
||||||
public on(event: 'invalidated', listener: () => void): this;
|
public on(event: 'invalidated', listener: () => void): this;
|
||||||
public on(event: 'shardDisconnected', listener: (event: CloseEvent, id: number) => void): this;
|
public on(event: 'shardDisconnect', listener: (event: CloseEvent, id: number) => void): this;
|
||||||
public on(event: 'shardError', listener: (error: Error, id: number) => void): this;
|
public on(event: 'shardError', listener: (error: Error, id: number) => void): this;
|
||||||
public on(event: 'shardReconnecting', listener: (id: number) => void): this;
|
public on(event: 'shardReconnecting', listener: (id: number) => void): this;
|
||||||
public on(event: 'shardReady', listener: (id: number) => void): this;
|
public on(event: 'shardReady', listener: (id: number) => void): this;
|
||||||
public on(event: 'shardResumed', listener: (id: number, replayed: number) => void): this;
|
public on(event: 'shardResume', listener: (id: number, replayed: number) => void): this;
|
||||||
public on(event: string, listener: Function): this;
|
public on(event: string, listener: Function): this;
|
||||||
|
|
||||||
public once(event: 'channelCreate' | 'channelDelete', listener: (channel: Channel) => void): this;
|
public once(event: 'channelCreate' | 'channelDelete', listener: (channel: Channel) => void): this;
|
||||||
@@ -224,11 +224,11 @@ declare module 'discord.js' {
|
|||||||
public once(event: 'voiceStateUpdate', listener: (oldState: VoiceState | undefined, newState: VoiceState) => void): this;
|
public once(event: 'voiceStateUpdate', listener: (oldState: VoiceState | undefined, newState: VoiceState) => void): this;
|
||||||
public once(event: 'webhookUpdate', listener: (channel: TextChannel) => void): this;
|
public once(event: 'webhookUpdate', listener: (channel: TextChannel) => void): this;
|
||||||
public once(event: 'invalidated', listener: () => void): this;
|
public once(event: 'invalidated', listener: () => void): this;
|
||||||
public once(event: 'shardDisconnected', listener: (event: CloseEvent, id: number) => void): this;
|
public once(event: 'shardDisconnect', listener: (event: CloseEvent, id: number) => void): this;
|
||||||
public once(event: 'shardError', listener: (error: Error, id: number) => void): this;
|
public once(event: 'shardError', listener: (error: Error, id: number) => void): this;
|
||||||
public once(event: 'shardReconnecting', listener: (id: number) => void): this;
|
public once(event: 'shardReconnecting', listener: (id: number) => void): this;
|
||||||
public once(event: 'shardReady', listener: (id: number) => void): this;
|
public once(event: 'shardReady', listener: (id: number) => void): this;
|
||||||
public once(event: 'shardResumed', listener: (id: number, replayed: number) => void): this;
|
public once(event: 'shardResume', listener: (id: number, replayed: number) => void): this;
|
||||||
public once(event: string, listener: Function): this;
|
public once(event: string, listener: Function): this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -473,11 +473,11 @@ declare module 'discord.js' {
|
|||||||
ERROR: 'error';
|
ERROR: 'error';
|
||||||
WARN: 'warn';
|
WARN: 'warn';
|
||||||
DEBUG: 'debug';
|
DEBUG: 'debug';
|
||||||
SHARD_DISCONNECTED: 'shardDisconnected';
|
SHARD_DISCONNECT: 'shardDisconnect';
|
||||||
SHARD_ERROR: 'shardError';
|
SHARD_ERROR: 'shardError';
|
||||||
SHARD_RECONNECTING: 'shardReconnecting';
|
SHARD_RECONNECTING: 'shardReconnecting';
|
||||||
SHARD_READY: 'shardReady';
|
SHARD_READY: 'shardReady';
|
||||||
SHARD_RESUMED: 'shardResumed';
|
SHARD_RESUME: 'shardResume';
|
||||||
INVALIDATED: 'invalidated';
|
INVALIDATED: 'invalidated';
|
||||||
RAW: 'raw';
|
RAW: 'raw';
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user