MessageType
EnumOn this page
discord.MessageType lists the named constants for this enumeration. Prefer these names over hardcoded literals.
Values
discord.MessageType.Default0Default. Use the symbolic name in bot code rather than the raw value.
discord.MessageType.RecipientAdd1Recipient Add. Use the symbolic name in bot code rather than the raw value.
discord.MessageType.RecipientRemove2Recipient Remove. Use the symbolic name in bot code rather than the raw value.
discord.MessageType.Call3Call. Use the symbolic name in bot code rather than the raw value.
discord.MessageType.ChannelNameChange4Channel Name Change. Use the symbolic name in bot code rather than the raw value.
discord.MessageType.ChannelIconChange5Channel Icon Change. Use the symbolic name in bot code rather than the raw value.
discord.MessageType.ChannelPinnedMessage6Channel Pinned Message. Use the symbolic name in bot code rather than the raw value.
discord.MessageType.UserJoin7User Join. Use the symbolic name in bot code rather than the raw value.
discord.MessageType.GuildBoost8Guild Boost. Use the symbolic name in bot code rather than the raw value.
discord.MessageType.Reply19Reply. Use the symbolic name in bot code rather than the raw value.
discord.MessageType.ChatInputCommand20Chat Input Command. Use the symbolic name in bot code rather than the raw value.
discord.MessageType.ThreadStarterMessage21Thread Starter Message. Use the symbolic name in bot code rather than the raw value.
discord.MessageType.ContextMenuCommand23Context Menu Command. Use the symbolic name in bot code rather than the raw value.
Usage
Read members as discord.MessageType.Name. Do not hard-code numeric literals when a symbolic name exists.
Example
local discord = require("discord")
print(discord.MessageType.Default)