From 0a25bf41b91242f438ca5c32777a293f6c262144 Mon Sep 17 00:00:00 2001 From: Cyb3r Jak3 Date: Sun, 6 Oct 2024 12:50:34 -0400 Subject: [PATCH] feat(VoiceRegion): add missing fields (#1571) Add the following fields to VoiceRegion struct: Optimal, Deprecated, Custom --- structs.go | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/structs.go b/structs.go index 0ff6627..148aa3c 100644 --- a/structs.go +++ b/structs.go @@ -256,9 +256,13 @@ type IntegrationAccount struct { } // A VoiceRegion stores data for a specific voice region server. +// https://discord.com/developers/docs/resources/voice#voice-region-object type VoiceRegion struct { - ID string `json:"id"` - Name string `json:"name"` + ID string `json:"id"` + Name string `json:"name"` + Optimal bool `json:"optimal"` + Deprecated bool `json:"deprecated"` + Custom bool `json:"custom"` } // InviteTargetType indicates the type of target of an invite