diff --git a/deno/voice/v4.ts b/deno/voice/v4.ts index f06ec0fe..7a010ce1 100644 --- a/deno/voice/v4.ts +++ b/deno/voice/v4.ts @@ -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, } diff --git a/deno/voice/v8.ts b/deno/voice/v8.ts index f73b8d35..7b46772b 100644 --- a/deno/voice/v8.ts +++ b/deno/voice/v8.ts @@ -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, } /** diff --git a/voice/v4.ts b/voice/v4.ts index f06ec0fe..7a010ce1 100644 --- a/voice/v4.ts +++ b/voice/v4.ts @@ -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, } diff --git a/voice/v8.ts b/voice/v8.ts index f73b8d35..7b46772b 100644 --- a/voice/v8.ts +++ b/voice/v8.ts @@ -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, } /**