|
@@ -170,14 +170,13 @@ type Guild struct {
|
|
|
|
|
|
// A Role stores information about Discord guild member roles.
|
|
// A Role stores information about Discord guild member roles.
|
|
type Role struct {
|
|
type Role struct {
|
|
- ID string `json:"id"`
|
|
|
|
- Name string `json:"name"`
|
|
|
|
- Managed bool `json:"managed"`
|
|
|
|
- Hoist bool `json:"hoist"`
|
|
|
|
- // This is coming back as an int or string, for now do not parse.
|
|
|
|
- Color int `json:"-"`
|
|
|
|
- Position int `json:"position"`
|
|
|
|
- Permissions int `json:"permissions"`
|
|
|
|
|
|
+ ID string `json:"id"`
|
|
|
|
+ Name string `json:"name"`
|
|
|
|
+ Managed bool `json:"managed"`
|
|
|
|
+ Hoist bool `json:"hoist"`
|
|
|
|
+ Color int `json:"color"`
|
|
|
|
+ Position int `json:"position"`
|
|
|
|
+ Permissions int `json:"permissions"`
|
|
}
|
|
}
|
|
|
|
|
|
// A VoiceState stores the voice states of Guilds
|
|
// A VoiceState stores the voice states of Guilds
|