Merge pull request #1089 from constantoine/master
Add MessageFlags values
This commit is contained in:
commit
d3554153f1
1 changed files with 17 additions and 4 deletions
21
message.go
21
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 << 0
|
||||||
MessageFlagsSupressEmbeds MessageFlags = 1 << 2
|
// MessageFlagsIsCrossPosted this message originated from a message in another channel (via Channel Following).
|
||||||
|
MessageFlagsIsCrossPosted MessageFlags = 1 << 1
|
||||||
|
// MessageFlagsSupressEmbeds do not include any embeds when serializing this message.
|
||||||
|
MessageFlagsSupressEmbeds MessageFlags = 1 << 2
|
||||||
|
// MessageFlagsSourceMessageDeleted the source message for this crosspost has been deleted (via Channel Following).
|
||||||
MessageFlagsSourceMessageDeleted MessageFlags = 1 << 3
|
MessageFlagsSourceMessageDeleted MessageFlags = 1 << 3
|
||||||
MessageFlagsUrgent MessageFlags = 1 << 4
|
// MessageFlagsUrgent this message came from the urgent message system.
|
||||||
|
MessageFlagsUrgent MessageFlags = 1 << 4
|
||||||
|
// MessageFlagsHasThread this message has an associated thread, with the same id as the message.
|
||||||
|
MessageFlagsHasThread MessageFlags = 1 << 5
|
||||||
|
// MessageFlagsEphemeral this message is only visible to the user who invoked the Interaction.
|
||||||
|
MessageFlagsEphemeral MessageFlags = 1 << 6
|
||||||
|
// MessageFlagsLoading this message is an Interaction Response and the bot is "thinking".
|
||||||
|
MessageFlagsLoading MessageFlags = 1 << 7
|
||||||
|
// MessageFlagsFailedToMentionSomeRolesInThread this message failed to mention some roles and add their members to the thread.
|
||||||
|
MessageFlagsFailedToMentionSomeRolesInThread MessageFlags = 1 << 8
|
||||||
)
|
)
|
||||||
|
|
||||||
// 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