Added structs for voice regions and ice
This commit is contained in:
parent
c94dfba12d
commit
4fc845b7eb
1 changed files with 20 additions and 2 deletions
22
structs.go
22
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"`
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue