-
Notifications
You must be signed in to change notification settings - Fork 0
/
role.go
23 lines (20 loc) · 951 Bytes
/
role.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
package httpcord
import "httpcord/permissions"
type Role struct {
ID Snowflake `json:"id"`
Name string `json:"name"`
Color int `json:"color"`
Hoist bool `json:"hoist"`
Icon string `json:"icon,omitempty"`
UnicodeEmoji string `json:"unicode_emoji,omitempty"`
Position int `json:"position"`
Permissions *permissions.PermissionBit `json:"permissions"`
Managed bool `json:"managed"`
Mentionable bool `json:"mentionable"`
Tags []*RoleTag `json:"tags,omitempty"`
}
type RoleTag struct {
BotID *Snowflake `json:"bot_id,omitempty"`
IntegrationID *Snowflake `json:"integration_id,omitempty"`
PremiumSubscriber interface{} `json:"premium_subscriber,omitempty"`
}