initial commit
This commit is contained in:
commit
313bd35b23
8 changed files with 591 additions and 0 deletions
29
guild.go
Normal file
29
guild.go
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
package discord
|
||||
|
||||
import "time"
|
||||
|
||||
type Guild struct {
|
||||
ID string `json:"id"`
|
||||
}
|
||||
|
||||
type GuildMemberFlags int
|
||||
|
||||
const (
|
||||
GuildMemberFlagsDidRejoin GuildMemberFlags = iota
|
||||
)
|
||||
|
||||
type GuildMember struct {
|
||||
User User `json:"user"`
|
||||
Nick string `json:"nick"`
|
||||
Avatar string `json:"avatar"`
|
||||
Banner string `json:"banner"`
|
||||
Roles []string `json:"roles"`
|
||||
JoinedAt time.Time `json:"joined_at"`
|
||||
PremiumSince time.Time `json:"premium_since"`
|
||||
Deaf bool `json:"deaf"`
|
||||
Mute bool `json:"mute"`
|
||||
}
|
||||
|
||||
func (u *Guild) BucketID() string {
|
||||
return u.ID
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue