DiscordLua
discorddiscord
v1.2.4
Install

InteractionType

Enum
On this page

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

Values

discord.InteractionType.Ping
1
Ping. Use the symbolic name in bot code rather than the raw value.
discord.InteractionType.ApplicationCommand
2
Application Command. Use the symbolic name in bot code rather than the raw value.
discord.InteractionType.MessageComponent
3
Message Component. Use the symbolic name in bot code rather than the raw value.
discord.InteractionType.ApplicationCommandAutocomplete
4
Application Command Autocomplete. Use the symbolic name in bot code rather than the raw value.
discord.InteractionType.ModalSubmit
5
Modal Submit. Use the symbolic name in bot code rather than the raw value.

Usage

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

Example

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