ApplicationCommandOptionType
EnumOn this page
discord.ApplicationCommandOptionType lists the named constants for this enumeration. Prefer these names over hardcoded literals.
Values
discord.ApplicationCommandOptionType.Subcommand1Subcommand. Use the symbolic name in bot code rather than the raw value.
discord.ApplicationCommandOptionType.SubcommandGroup2Subcommand Group. Use the symbolic name in bot code rather than the raw value.
discord.ApplicationCommandOptionType.String3String. Use the symbolic name in bot code rather than the raw value.
discord.ApplicationCommandOptionType.Integer4Integer. Use the symbolic name in bot code rather than the raw value.
discord.ApplicationCommandOptionType.Boolean5Boolean. Use the symbolic name in bot code rather than the raw value.
discord.ApplicationCommandOptionType.User6User. Use the symbolic name in bot code rather than the raw value.
discord.ApplicationCommandOptionType.Channel7Channel. Use the symbolic name in bot code rather than the raw value.
discord.ApplicationCommandOptionType.Role8Role. Use the symbolic name in bot code rather than the raw value.
discord.ApplicationCommandOptionType.Mentionable9Mentionable. Use the symbolic name in bot code rather than the raw value.
discord.ApplicationCommandOptionType.Number10Number. Use the symbolic name in bot code rather than the raw value.
discord.ApplicationCommandOptionType.Attachment11Attachment. Use the symbolic name in bot code rather than the raw value.
Usage
Read members as discord.ApplicationCommandOptionType.Name. Do not hard-code numeric literals when a symbolic name exists.
Example
local discord = require("discord")
print(discord.ApplicationCommandOptionType.Subcommand)