summary refs log tree commit diff
path: root/api/src/schema
diff options
context:
space:
mode:
authorFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-09-04 12:18:49 +0200
committerGitHub <noreply@github.com>2021-09-04 12:18:49 +0200
commit3645fb056858de55bf629645344fd63a38fa5ed8 (patch)
tree43ffaac3e0cf0b04f182f90c7f7e009de4202ab8 /api/src/schema
parent:bug: fix ReadyEventData (diff)
parent:pencil: added comments and updated type (diff)
downloadserver-3645fb056858de55bf629645344fd63a38fa5ed8.tar.xz
Merge pull request #320 from AlTech98/master
Added /guilds/:id/voice-states/ apis, VOICE_SERVER_UPDATE fix
Diffstat (limited to 'api/src/schema')
-rw-r--r--api/src/schema/Guild.ts12
1 files changed, 12 insertions, 0 deletions
diff --git a/api/src/schema/Guild.ts b/api/src/schema/Guild.ts

index 7c96905e..29c78ab0 100644 --- a/api/src/schema/Guild.ts +++ b/api/src/schema/Guild.ts
@@ -92,3 +92,15 @@ export interface GuildUpdateWelcomeScreenSchema { enabled?: boolean; description?: string; } + +export const VoiceStateUpdateSchema = { + channel_id: String, // Snowflake + $suppress: Boolean, + $request_to_speak_timestamp: String // ISO8601 timestamp +}; + +export interface VoiceStateUpdateSchema { + channel_id: string; // Snowflake + suppress?: boolean; + request_to_speak_timestamp?: string // ISO8601 timestamp +}