-
Notifications
You must be signed in to change notification settings - Fork 0
/
api.go
52 lines (48 loc) · 2.2 KB
/
api.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
package httpcord
type APIInteraction struct {
ID string `json:"id"`
ApplicationID string `json:"application_id"`
Type InteractionType `json:"type"`
Data interface{} `json:"data"`
GuildID string `json:"guild_id,omitempty"`
ChannelID string `json:"channel_id,omitempty"`
Member *APIMember `json:"member,omitempty"`
User *APIUser `json:"user,omitempty"`
Token string `json:"token"`
Version int `json:"version"`
Message *APIMessage `json:"message,omitempty"`
AppPermissions string `json:"app_permissions,omitempty"`
Locale string `json:"locale,omitempty"`
}
type APIMember struct {
User *APIUser `json:"user,omitempty"`
Nick string `json:"nick,omitempty"`
Avatar string `json:"avatar,omitempty"`
Roles []string `json:"roles"`
JoinedAt Time `json:"joined_at"`
PremiumSince Time `json:"premium_since"`
Deaf bool `json:"deaf"`
Mute bool `json:"mute"`
Pending bool `json:"pending,omitempty"`
Permissions string `json:"permissions,omitempty"`
CommunicationDisabledUntil Time `json:"communication_disabled_until"`
}
type APIUser struct {
ID string `json:"id"`
Username string `json:"username"`
Discriminator string `json:"discriminator"`
Avatar string `json:"avatar,omitempty"`
Bot bool `json:"bot,omitempty"`
System bool `json:"system"`
MfaEnabled bool `json:"mfa_enabled"`
Banner string `json:"banner,omitempty"`
AccentColor string `json:"accent_color"`
Locale Locale `json:"locale,omitempty"`
Verified bool `json:"verified,omitempty"`
Email string `json:"email,omitempty"`
Flags UserFlags `json:"flags,omitempty"`
PremiumType PremiumType `json:"premium_type"`
PublicFlags UserFlags `json:"public_flags,omitempty"`
}
type APIMessage struct {
}