DiscordLua
discorddiscord
v1.2.4
Install

ApplicationCommandType

Enum
On this page

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

Values

discord.ApplicationCommandType.ChatInput
1
Chat Input. Use the symbolic name in bot code rather than the raw value.
discord.ApplicationCommandType.User
2
User. Use the symbolic name in bot code rather than the raw value.
discord.ApplicationCommandType.Message
3
Message. Use the symbolic name in bot code rather than the raw value.
discord.ApplicationCommandType.PrimaryEntryPoint
4
Primary Entry Point. Use the symbolic name in bot code rather than the raw value.

Usage

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

Example

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