types: add VoiceRegion type

This commit is contained in:
ITOH
2021-03-28 23:21:54 +02:00
parent caff4d809c
commit d1c13d4658

View File

@@ -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;