-
Notifications
You must be signed in to change notification settings - Fork 20
/
types.go
52 lines (44 loc) · 1.49 KB
/
types.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 discordwebhook
type Message struct {
Username *string `json:"username,omitempty"`
AvatarUrl *string `json:"avatar_url,omitempty"`
Content *string `json:"content,omitempty"`
Embeds *[]Embed `json:"embeds,omitempty"`
AllowedMentions *AllowedMentions `json:"allowed_mentions,omitempty"`
}
type Embed struct {
Title *string `json:"title,omitempty"`
Url *string `json:"url,omitempty"`
Description *string `json:"description,omitempty"`
Color *string `json:"color,omitempty"`
Author *Author `json:"author,omitempty"`
Fields *[]Field `json:"fields,omitempty"`
Thumbnail *Thumbnail `json:"thumbnail,omitempty"`
Image *Image `json:"image,omitempty"`
Footer *Footer `json:"footer,omitempty"`
}
type Author struct {
Name *string `json:"name,omitempty"`
Url *string `json:"url,omitempty"`
IconUrl *string `json:"icon_url,omitempty"`
}
type Field struct {
Name *string `json:"name,omitempty"`
Value *string `json:"value,omitempty"`
Inline *bool `json:"inline,omitempty"`
}
type Thumbnail struct {
Url *string `json:"url,omitempty"`
}
type Image struct {
Url *string `json:"url,omitempty"`
}
type Footer struct {
Text *string `json:"text,omitempty"`
IconUrl *string `json:"icon_url,omitempty"`
}
type AllowedMentions struct {
Parse *[]string `json:"parse,omitempty"`
Users *[]string `json:"users,omitempty"`
Roles *[]string `json:"roles,omitempty"`
}