mirror of
https://github.com/crazy-max/diun.git
synced 2025-01-12 11:38:11 +00:00
d06ec05c1c
Co-authored-by: CrazyMax <crazy-max@users.noreply.github.com>
52 lines
1.6 KiB
Go
52 lines
1.6 KiB
Go
package discord
|
|
|
|
// Message contains all the information for a message
|
|
type Message struct {
|
|
Content string `json:"content"`
|
|
Username string `json:"username"`
|
|
AvatarURL string `json:"avatar_url"`
|
|
Embeds []Embed `json:"embeds"`
|
|
}
|
|
|
|
// Embed contains all the information for an embed object
|
|
type Embed struct {
|
|
Title string `json:"title,omitempty"`
|
|
Description string `json:"description,omitempty"`
|
|
URL string `json:"url,omitempty"`
|
|
Color int `json:"color,omitempty"`
|
|
Footer EmbedFooter `json:"footer,omitempty"`
|
|
Image EmbedImage `json:"image,omitempty"`
|
|
Thumbnail EmbedThumbnail `json:"thumbnail,omitempty"`
|
|
Author EmbedAuthor `json:"author,omitempty"`
|
|
Fields []EmbedField `json:"fields,omitempty"`
|
|
}
|
|
|
|
// EmbedFooter contains all the information for an embed footer object
|
|
type EmbedFooter struct {
|
|
Text string `json:"text"`
|
|
IconURL string `json:"icon_url"`
|
|
}
|
|
|
|
// EmbedImage contains all the information for an embed image object
|
|
type EmbedImage struct {
|
|
URL string `json:"url"`
|
|
}
|
|
|
|
// EmbedThumbnail contains all the information for an embed thumbnail object
|
|
type EmbedThumbnail struct {
|
|
URL string `json:"url"`
|
|
}
|
|
|
|
// EmbedAuthor contains all the information for an embed author object
|
|
type EmbedAuthor struct {
|
|
Name string `json:"name"`
|
|
URL string `json:"url"`
|
|
IconURL string `json:"icon_url"`
|
|
}
|
|
|
|
// EmbedField contains all the information for an embed field object
|
|
type EmbedField struct {
|
|
Name string `json:"name"`
|
|
Value string `json:"value"`
|
|
Inline bool `json:"inline,omitempty"`
|
|
}
|