DiscordLua
discorddiscord
v1.2.4
Install

MessageType

Enum
On this page

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

Values

discord.MessageType.Default
0
Default. Use the symbolic name in bot code rather than the raw value.
discord.MessageType.RecipientAdd
1
Recipient Add. Use the symbolic name in bot code rather than the raw value.
discord.MessageType.RecipientRemove
2
Recipient Remove. Use the symbolic name in bot code rather than the raw value.
discord.MessageType.Call
3
Call. Use the symbolic name in bot code rather than the raw value.
discord.MessageType.ChannelNameChange
4
Channel Name Change. Use the symbolic name in bot code rather than the raw value.
discord.MessageType.ChannelIconChange
5
Channel Icon Change. Use the symbolic name in bot code rather than the raw value.
discord.MessageType.ChannelPinnedMessage
6
Channel Pinned Message. Use the symbolic name in bot code rather than the raw value.
discord.MessageType.UserJoin
7
User Join. Use the symbolic name in bot code rather than the raw value.
discord.MessageType.GuildBoost
8
Guild Boost. Use the symbolic name in bot code rather than the raw value.
discord.MessageType.Reply
19
Reply. Use the symbolic name in bot code rather than the raw value.
discord.MessageType.ChatInputCommand
20
Chat Input Command. Use the symbolic name in bot code rather than the raw value.
discord.MessageType.ThreadStarterMessage
21
Thread Starter Message. Use the symbolic name in bot code rather than the raw value.
discord.MessageType.ContextMenuCommand
23
Context 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

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