Add voiceServerUpdate event to ClientEventTypes and add type tests

Co-authored-by: almeidx <42935195+almeidx@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2026-02-04 09:40:58 +00:00
parent 0d10007b4f
commit 6594bc58b8
2 changed files with 6 additions and 0 deletions

View File

@@ -5571,6 +5571,7 @@ export interface ClientEventTypes {
typingStart: [typing: Typing]; typingStart: [typing: Typing];
userUpdate: [oldUser: PartialUser | User, newUser: User]; userUpdate: [oldUser: PartialUser | User, newUser: User];
voiceChannelEffectSend: [voiceChannelEffect: VoiceChannelEffect]; voiceChannelEffectSend: [voiceChannelEffect: VoiceChannelEffect];
voiceServerUpdate: [payload: GatewayVoiceServerUpdateDispatchData];
voiceStateUpdate: [oldState: VoiceState, newState: VoiceState]; voiceStateUpdate: [oldState: VoiceState, newState: VoiceState];
warn: [message: string]; warn: [message: string];
webhooksUpdate: [channel: AnnouncementChannel | ForumChannel | MediaChannel | TextChannel | VoiceChannel]; webhooksUpdate: [channel: AnnouncementChannel | ForumChannel | MediaChannel | TextChannel | VoiceChannel];

View File

@@ -16,6 +16,7 @@ import type {
APISelectMenuComponent, APISelectMenuComponent,
APIStringSelectComponent, APIStringSelectComponent,
APITextInputComponent, APITextInputComponent,
GatewayVoiceServerUpdateDispatchData,
Locale, Locale,
ThreadChannelType, ThreadChannelType,
WebhookType, WebhookType,
@@ -1384,6 +1385,10 @@ client.on('voiceStateUpdate', ({ client: oldClient }, { client: newClient }) =>
expectType<Client<true>>(newClient); expectType<Client<true>>(newClient);
}); });
client.on('voiceServerUpdate', payload => {
expectType<GatewayVoiceServerUpdateDispatchData>(payload);
});
client.on('webhooksUpdate', ({ client }) => expectType<Client<true>>(client)); client.on('webhooksUpdate', ({ client }) => expectType<Client<true>>(client));
client.on('guildCreate', async g => { client.on('guildCreate', async g => {