forked from pothtonswer/discordmuffin
Add MessageFlags values
This commit is contained in:
parent
aba5dc811d
commit
f4ad6e85ea
1 changed files with 18 additions and 5 deletions
23
message.go
23
message.go
|
@ -178,11 +178,24 @@ type MessageFlags int
|
||||||
|
|
||||||
// Valid MessageFlags values
|
// Valid MessageFlags values
|
||||||
const (
|
const (
|
||||||
MessageFlagsCrossPosted MessageFlags = 1 << 0
|
// MessageFlagsCrossPosted This message has been published to subscribed channels (via Channel Following).
|
||||||
MessageFlagsIsCrossPosted MessageFlags = 1 << 1
|
MessageFlagsCrossPosted MessageFlags = 1 << iota
|
||||||
MessageFlagsSupressEmbeds MessageFlags = 1 << 2
|
// MessageFlagsIsCrossPosted this message originated from a message in another channel (via Channel Following).
|
||||||
MessageFlagsSourceMessageDeleted MessageFlags = 1 << 3
|
MessageFlagsIsCrossPosted
|
||||||
MessageFlagsUrgent MessageFlags = 1 << 4
|
// MessageFlagsSupressEmbeds do not include any embeds when serializing this message.
|
||||||
|
MessageFlagsSupressEmbeds
|
||||||
|
// MessageFlagsSourceMessageDeleted the source message for this crosspost has been deleted (via Channel Following).
|
||||||
|
MessageFlagsSourceMessageDeleted
|
||||||
|
// MessageFlagsUrgent this message came from the urgent message system.
|
||||||
|
MessageFlagsUrgent
|
||||||
|
// MessageFlagsHasThread this message has an associated thread, with the same id as the message.
|
||||||
|
MessageFlagsHasThread
|
||||||
|
// MessageFlagsEphemeral this message is only visible to the user who invoked the Interaction.
|
||||||
|
MessageFlagsEphemeral
|
||||||
|
// MessageFlagsLoading this message is an Interaction Response and the bot is "thinking".
|
||||||
|
MessageFlagsLoading
|
||||||
|
// MessageFlagsFailedToMentionSomeRolesInThread this message failed to mention some roles and add their members to the thread.
|
||||||
|
MessageFlagsFailedToMentionSomeRolesInThread
|
||||||
)
|
)
|
||||||
|
|
||||||
// File stores info about files you e.g. send in messages.
|
// File stores info about files you e.g. send in messages.
|
||||||
|
|
Loading…
Reference in a new issue