mirror of
https://github.com/bwmarrin/discordgo.git
synced 2025-12-23 23:17:45 -05:00
feat(MessageAttachment): add flags (#1626)
This commit is contained in:
31
message.go
31
message.go
@@ -352,19 +352,28 @@ type MessageAllowedMentions struct {
|
|||||||
|
|
||||||
// A MessageAttachment stores data for message attachments.
|
// A MessageAttachment stores data for message attachments.
|
||||||
type MessageAttachment struct {
|
type MessageAttachment struct {
|
||||||
ID string `json:"id"`
|
ID string `json:"id"`
|
||||||
URL string `json:"url"`
|
URL string `json:"url"`
|
||||||
ProxyURL string `json:"proxy_url"`
|
ProxyURL string `json:"proxy_url"`
|
||||||
Filename string `json:"filename"`
|
Filename string `json:"filename"`
|
||||||
ContentType string `json:"content_type"`
|
ContentType string `json:"content_type"`
|
||||||
Width int `json:"width"`
|
Width int `json:"width"`
|
||||||
Height int `json:"height"`
|
Height int `json:"height"`
|
||||||
Size int `json:"size"`
|
Size int `json:"size"`
|
||||||
Ephemeral bool `json:"ephemeral"`
|
Ephemeral bool `json:"ephemeral"`
|
||||||
DurationSecs float64 `json:"duration_secs"`
|
DurationSecs float64 `json:"duration_secs"`
|
||||||
Waveform string `json:"waveform"`
|
Waveform string `json:"waveform"`
|
||||||
|
Flags MessageAttachmentFlags `json:"flags"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// MessageAttachmentFlags is the flags of a message attachment.
|
||||||
|
type MessageAttachmentFlags int
|
||||||
|
|
||||||
|
// Valid MessageAttachmentFlags values.
|
||||||
|
const (
|
||||||
|
MessageAttachmentFlagsIsRemix MessageAttachmentFlags = 1 << 2
|
||||||
|
)
|
||||||
|
|
||||||
// MessageEmbedFooter is a part of a MessageEmbed struct.
|
// MessageEmbedFooter is a part of a MessageEmbed struct.
|
||||||
type MessageEmbedFooter struct {
|
type MessageEmbedFooter struct {
|
||||||
Text string `json:"text,omitempty"`
|
Text string `json:"text,omitempty"`
|
||||||
|
|||||||
Reference in New Issue
Block a user