diff --git a/packages/discord.js/typings/index.d.ts b/packages/discord.js/typings/index.d.ts index 8db068601..fccddcbc8 100644 --- a/packages/discord.js/typings/index.d.ts +++ b/packages/discord.js/typings/index.d.ts @@ -5571,6 +5571,7 @@ export interface ClientEventTypes { typingStart: [typing: Typing]; userUpdate: [oldUser: PartialUser | User, newUser: User]; voiceChannelEffectSend: [voiceChannelEffect: VoiceChannelEffect]; + voiceServerUpdate: [payload: GatewayVoiceServerUpdateDispatchData]; voiceStateUpdate: [oldState: VoiceState, newState: VoiceState]; warn: [message: string]; webhooksUpdate: [channel: AnnouncementChannel | ForumChannel | MediaChannel | TextChannel | VoiceChannel]; diff --git a/packages/discord.js/typings/index.test-d.ts b/packages/discord.js/typings/index.test-d.ts index 86d8b5760..9c48b118e 100644 --- a/packages/discord.js/typings/index.test-d.ts +++ b/packages/discord.js/typings/index.test-d.ts @@ -16,6 +16,7 @@ import type { APISelectMenuComponent, APIStringSelectComponent, APITextInputComponent, + GatewayVoiceServerUpdateDispatchData, Locale, ThreadChannelType, WebhookType, @@ -1384,6 +1385,10 @@ client.on('voiceStateUpdate', ({ client: oldClient }, { client: newClient }) => expectType>(newClient); }); +client.on('voiceServerUpdate', payload => { + expectType(payload); +}); + client.on('webhooksUpdate', ({ client }) => expectType>(client)); client.on('guildCreate', async g => {