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];
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];

View File

@@ -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<Client<true>>(newClient);
});
client.on('voiceServerUpdate', payload => {
expectType<GatewayVoiceServerUpdateDispatchData>(payload);
});
client.on('webhooksUpdate', ({ client }) => expectType<Client<true>>(client));
client.on('guildCreate', async g => {