DiscordLua
discorddiscord
v1.2.4
Install

InteractionResponseType

Enum
On this page

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

Values

discord.InteractionResponseType.Pong
1
Pong. Use the symbolic name in bot code rather than the raw value.
discord.InteractionResponseType.ChannelMessageWithSource
4
Channel Message With Source. Use the symbolic name in bot code rather than the raw value.
discord.InteractionResponseType.DeferredChannelMessageWithSource
5
Deferred Channel Message With Source. Use the symbolic name in bot code rather than the raw value.
discord.InteractionResponseType.DeferredUpdateMessage
6
Deferred Update Message. Use the symbolic name in bot code rather than the raw value.
discord.InteractionResponseType.UpdateMessage
7
Update Message. Use the symbolic name in bot code rather than the raw value.
discord.InteractionResponseType.ApplicationCommandAutocompleteResult
8
Application Command Autocomplete Result. Use the symbolic name in bot code rather than the raw value.
discord.InteractionResponseType.LaunchActivity
12
Launch Activity. Use the symbolic name in bot code rather than the raw value.
discord.InteractionResponseType.PremiumRequired
10
Premium Required. Use the symbolic name in bot code rather than the raw value.

Usage

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

Example

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