From d1c13d4658b7f1fca20d69eaf2f56efda586c244 Mon Sep 17 00:00:00 2001 From: ITOH <72305210+itohatweb@users.noreply.github.com> Date: Sun, 28 Mar 2021 23:21:54 +0200 Subject: [PATCH] types: add VoiceRegion type --- src/types/voices/voice_region.ts | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 src/types/voices/voice_region.ts diff --git a/src/types/voices/voice_region.ts b/src/types/voices/voice_region.ts new file mode 100644 index 000000000..70e9a0206 --- /dev/null +++ b/src/types/voices/voice_region.ts @@ -0,0 +1,17 @@ +export interface VoiceRegion { + /** Unique ID for the region */ + id: string; + /** Name of the region */ + name: string; + /** True if this is a vip-only server */ + vip: boolean; + /** True for a single server that is closest to the current user's client */ + optimal: boolean; + /** Whether this is a deprecated voice region (avoid swithing to these) */ + deprecated: boolean; + /** Whether this is a custom voice region (used for events/etc) */ + custom: boolean; +} + +/** https://discord.com/developers/docs/resources/voice#voice-region-object-voice-region-structure */ +export type DiscordVoiceRegion = VoiceRegion;