From 4fc845b7eb82344dfeac11060305c92d9def2617 Mon Sep 17 00:00:00 2001 From: Bruce Marriner Date: Sat, 14 Nov 2015 11:14:30 -0600 Subject: [PATCH] Added structs for voice regions and ice --- structs.go | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/structs.go b/structs.go index 527d0c7..c5729af 100644 --- a/structs.go +++ b/structs.go @@ -16,8 +16,26 @@ type Message struct { ChannelId int `json:"channel_id,string"` } -type Attachment struct { +type Attachment struct { //TODO figure this out } -type Embed struct { +type Embed struct { // TODO figure this out +} + +type VoiceRegion struct { + Id string `json:"id"` + Name string `json:"name"` + SampleHostname string `json:"sample_hostname"` + SamplePort int `json:"sample_port"` +} + +type VoiceIce struct { + Ttl int `json:"ttl,string"` + Servers []IceServer `json:"servers"` +} + +type IceServer struct { + Url string `json:"url"` + Username string `json:"username"` + Credential string `json:"credential"` }