summary refs log tree commit diff
path: root/src/util/schemas/VoiceStateUpdateSchema.ts
diff options
context:
space:
mode:
authorMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2022-09-26 22:08:14 +1000
committerMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2022-09-26 22:08:14 +1000
commit849b257db7d43c2f1d13d9620ce7f6ba9dfd3e50 (patch)
tree37c9af175c98116a0f48ca2d5c8b74f291b3ce85 /src/util/schemas/VoiceStateUpdateSchema.ts
parentFix scripts/benchmark/connections.js (diff)
downloadserver-849b257db7d43c2f1d13d9620ce7f6ba9dfd3e50.tar.xz
Move schemas to /src/util/schemas
Diffstat (limited to '')
-rw-r--r--src/util/schemas/VoiceStateUpdateSchema.ts (renamed from src/gateway/schema/VoiceStateUpdateSchema.ts)25
1 files changed, 15 insertions, 10 deletions
diff --git a/src/gateway/schema/VoiceStateUpdateSchema.ts b/src/util/schemas/VoiceStateUpdateSchema.ts

index f6480414..5f805f4d 100644 --- a/src/gateway/schema/VoiceStateUpdateSchema.ts +++ b/src/util/schemas/VoiceStateUpdateSchema.ts
@@ -1,12 +1,4 @@ -export const VoiceStateUpdateSchema = { - $guild_id: String, - $channel_id: String, - self_mute: Boolean, - self_deaf: Boolean, - $self_video: Boolean, //required in docs but bots don't always send it - $preferred_region: String, -}; - +//TODO need more testing when community guild and voice stage channel are working export interface VoiceStateUpdateSchema { guild_id?: string; channel_id?: string; @@ -14,4 +6,17 @@ export interface VoiceStateUpdateSchema { self_deaf: boolean; self_video?: boolean; preferred_region?: string; -} \ No newline at end of file + request_to_speak_timestamp?: Date; + suppress?: boolean; +} + +export const VoiceStateUpdateSchema = { + $guild_id: String, + $channel_id: String, + self_mute: Boolean, + self_deaf: Boolean, + $self_video: Boolean, //required in docs but bots don't always send it + $preferred_region: String, + $request_to_speak_timestamp: Date, + $suppress: Boolean, +}; \ No newline at end of file