From 9a95b6a1e81ff31478a69580c549537fca1fc118 Mon Sep 17 00:00:00 2001 From: SpaceEEC Date: Wed, 15 Aug 2018 15:05:13 +0200 Subject: [PATCH] typings(Client): voiceStateUpdate now always has an old state PR: N/A Commit: https://github.com/discordjs/discord.js/commit/38597de271ade384bdbb70aad60903c252e7d4c9 --- typings/index.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/typings/index.d.ts b/typings/index.d.ts index 0170ebf4c..7f7b59927 100644 --- a/typings/index.d.ts +++ b/typings/index.d.ts @@ -146,7 +146,7 @@ declare module 'discord.js' { public on(event: 'typingStart' | 'typingStop', listener: (channel: Channel, user: User) => void): this; public on(event: 'userNoteUpdate', listener: (user: UserResolvable, oldNote: string, newNote: string) => void): this; public on(event: 'userUpdate', listener: (oldUser: User, newUser: User) => void): this; - public once(event: 'voiceStateUpdate', listener: (oldState: VoiceState | undefined, newState: VoiceState) => void): this; + public once(event: 'voiceStateUpdate', listener: (oldState: VoiceState, newState: VoiceState) => void): this; public on(event: string, listener: Function): this; public once(event: 'channelCreate' | 'channelDelete', listener: (channel: Channel) => void): this; @@ -180,7 +180,7 @@ declare module 'discord.js' { public once(event: 'typingStart' | 'typingStop', listener: (channel: Channel, user: User) => void): this; public once(event: 'userNoteUpdate', listener: (user: UserResolvable, oldNote: string, newNote: string) => void): this; public once(event: 'userUpdate', listener: (oldUser: User, newUser: User) => void): this; - public once(event: 'voiceStateUpdate', listener: (oldState: VoiceState | undefined, newState: VoiceState) => void): this; + public once(event: 'voiceStateUpdate', listener: (oldState: VoiceState, newState: VoiceState) => void): this; public once(event: string, listener: Function): this; }