DiscordLua
discorddiscord
v1.2.4
Install

MessageFlags

Enum
On this page

discord.MessageFlags lists the named constants for this enumeration. Prefer these names over hardcoded literals.

Values

discord.MessageFlags.Crossposted
1 << 0
Crossposted. Use the symbolic name in bot code rather than the raw value.
discord.MessageFlags.IsCrosspost
1 << 1
Is Crosspost. Use the symbolic name in bot code rather than the raw value.
discord.MessageFlags.SuppressEmbeds
1 << 2
Suppress Embeds. Use the symbolic name in bot code rather than the raw value.
discord.MessageFlags.SourceMessageDeleted
1 << 3
Source Message Deleted. Use the symbolic name in bot code rather than the raw value.
discord.MessageFlags.Urgent
1 << 4
Urgent. Use the symbolic name in bot code rather than the raw value.
discord.MessageFlags.HasThread
1 << 5
Has Thread. Use the symbolic name in bot code rather than the raw value.
discord.MessageFlags.Ephemeral
1 << 6
Ephemeral. Use the symbolic name in bot code rather than the raw value.
discord.MessageFlags.Loading
1 << 7
Loading. Use the symbolic name in bot code rather than the raw value.
discord.MessageFlags.FailedToMentionSomeRolesInThread
1 << 8
Failed To Mention Some Roles In Thread. Use the symbolic name in bot code rather than the raw value.
discord.MessageFlags.SuppressNotifications
1 << 12
Suppress Notifications. Use the symbolic name in bot code rather than the raw value.
discord.MessageFlags.IsVoiceMessage
1 << 13
Is Voice Message. Use the symbolic name in bot code rather than the raw value.
discord.MessageFlags.IsComponentsV2
1 << 15
Is Components V2. Use the symbolic name in bot code rather than the raw value.

Usage

Read members as discord.MessageFlags.Name. Do not hard-code numeric literals when a symbolic name exists.

Example

lua
local discord = require("discord")
print(discord.MessageFlags.Crossposted)
Search Ctrl K Navigate Open Esc