InteractionType
EnumOn this page
discord.InteractionType lists the named constants for this enumeration. Prefer these names over hardcoded literals.
Values
discord.InteractionType.Ping1Ping. Use the symbolic name in bot code rather than the raw value.
discord.InteractionType.ApplicationCommand2Application Command. Use the symbolic name in bot code rather than the raw value.
discord.InteractionType.MessageComponent3Message Component. Use the symbolic name in bot code rather than the raw value.
discord.InteractionType.ApplicationCommandAutocomplete4Application Command Autocomplete. Use the symbolic name in bot code rather than the raw value.
discord.InteractionType.ModalSubmit5Modal 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
local discord = require("discord")
print(discord.InteractionType.Ping)