1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192 |
- package discordgo
- type Guild struct {
- Id int `json:"id,string"`
- Name string `json:"name"`
- Icon string `json:"icon"`
- Region string `json:"region"`
- Joined_at string `json:"joined_at"`
- Afk_timeout int `json:"afk_timeout"`
- Afk_channel_id int `json:"afk_channel_id,string"`
- Embed_channel_id int `json:"embed_channel_id"`
- Embed_enabled bool `json:"embed_enabled"`
- Owner_id int `json:"owner_id,string"`
- Large bool `json:"large"`
- JoinedAt string `json:"joined_at"`
- Roles []Role `json:"roles"`
- Members []Member `json:"members"`
- Presences []Presence `json:"presences"`
- Channels []Channel `json:"channels"`
- VoiceStates []VoiceState `json:"voice_states"`
- }
- type Role struct {
- Id int `json:"id,string"`
- Name string `json:"name"`
- Managed bool `json:"managed"`
- Color int `json:"color"`
- Hoist bool `json:"hoist"`
- Position int `json:"position"`
- Permissions int `json:"permissions"`
- }
- type VoiceState struct {
- UserId int `json:"user_id,string"`
- Suppress bool `json:"suppress"`
- SessionId string `json:"session_id"`
- SelfMute bool `json:"self_mute"`
- SelfDeaf bool `json:"self_deaf"`
- Mute bool `json:"mute"`
- Deaf bool `json:"deaf"`
- ChannelId int `json:"channel_id,string"`
- }
- type Presence struct {
- User User `json:"user"`
- Status string `json:"status"`
- GameId int `json:"game_id"`
- }
- type Member struct {
- GuildId int `json:"guild_id"`
- JoinedAt string `json:"joined_at"`
- Deaf bool `json:"deaf"`
- mute bool `json:"mute"`
- User User `json:"user"`
- Roles []string `json:"roles"`
- }
|