feat(voice): add close codes 4021 and 4022 (#1283)

This commit is contained in:
Snazzah
2025-06-27 05:56:39 -04:00
committed by GitHub
parent ab926eb038
commit 6b05db5a2f
4 changed files with 32 additions and 0 deletions

8
deno/voice/v4.ts generated
View File

@@ -160,4 +160,12 @@ export enum VoiceCloseCodes {
* You sent a malformed request
*/
BadRequest = 4_020,
/**
* Disconnect due to rate limit exceeded. Should not reconnect
*/
RateLimited,
/**
* Disconnect all clients due to call terminated (channel deleted, voice server changed, etc.). Should not reconnect
*/
CallTerminated,
}

8
deno/voice/v8.ts generated
View File

@@ -156,6 +156,14 @@ export enum VoiceCloseCodes {
* You sent a malformed request
*/
BadRequest = 4_020,
/**
* Disconnect due to rate limit exceeded. Should not reconnect
*/
RateLimited,
/**
* Disconnect all clients due to call terminated (channel deleted, voice server changed, etc.). Should not reconnect
*/
CallTerminated,
}
/**

View File

@@ -160,4 +160,12 @@ export enum VoiceCloseCodes {
* You sent a malformed request
*/
BadRequest = 4_020,
/**
* Disconnect due to rate limit exceeded. Should not reconnect
*/
RateLimited,
/**
* Disconnect all clients due to call terminated (channel deleted, voice server changed, etc.). Should not reconnect
*/
CallTerminated,
}

View File

@@ -156,6 +156,14 @@ export enum VoiceCloseCodes {
* You sent a malformed request
*/
BadRequest = 4_020,
/**
* Disconnect due to rate limit exceeded. Should not reconnect
*/
RateLimited,
/**
* Disconnect all clients due to call terminated (channel deleted, voice server changed, etc.). Should not reconnect
*/
CallTerminated,
}
/**