InteractionResponseType
EnumOn this page
discord.InteractionResponseType lists the named constants for this enumeration. Prefer these names over hardcoded literals.
Values
discord.InteractionResponseType.Pong1Pong. Use the symbolic name in bot code rather than the raw value.
discord.InteractionResponseType.ChannelMessageWithSource4Channel Message With Source. Use the symbolic name in bot code rather than the raw value.
discord.InteractionResponseType.DeferredChannelMessageWithSource5Deferred Channel Message With Source. Use the symbolic name in bot code rather than the raw value.
discord.InteractionResponseType.DeferredUpdateMessage6Deferred Update Message. Use the symbolic name in bot code rather than the raw value.
discord.InteractionResponseType.UpdateMessage7Update Message. Use the symbolic name in bot code rather than the raw value.
discord.InteractionResponseType.ApplicationCommandAutocompleteResult8Application Command Autocomplete Result. Use the symbolic name in bot code rather than the raw value.
discord.InteractionResponseType.Modal9Modal. Use the symbolic name in bot code rather than the raw value.
discord.InteractionResponseType.LaunchActivity12Launch Activity. Use the symbolic name in bot code rather than the raw value.
discord.InteractionResponseType.PremiumRequired10Premium 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
local discord = require("discord")
print(discord.InteractionResponseType.Pong)