DiscordLua
discorddiscord
v1.2.4
Install

ApplicationCommandOptionType

Enum
On this page

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

Values

discord.ApplicationCommandOptionType.Subcommand
1
Subcommand. Use the symbolic name in bot code rather than the raw value.
discord.ApplicationCommandOptionType.SubcommandGroup
2
Subcommand Group. Use the symbolic name in bot code rather than the raw value.
discord.ApplicationCommandOptionType.String
3
String. Use the symbolic name in bot code rather than the raw value.
discord.ApplicationCommandOptionType.Integer
4
Integer. Use the symbolic name in bot code rather than the raw value.
discord.ApplicationCommandOptionType.Boolean
5
Boolean. Use the symbolic name in bot code rather than the raw value.
discord.ApplicationCommandOptionType.User
6
User. Use the symbolic name in bot code rather than the raw value.
discord.ApplicationCommandOptionType.Channel
7
Channel. Use the symbolic name in bot code rather than the raw value.
discord.ApplicationCommandOptionType.Role
8
Role. Use the symbolic name in bot code rather than the raw value.
discord.ApplicationCommandOptionType.Mentionable
9
Mentionable. Use the symbolic name in bot code rather than the raw value.
discord.ApplicationCommandOptionType.Number
10
Number. Use the symbolic name in bot code rather than the raw value.
discord.ApplicationCommandOptionType.Attachment
11
Attachment. 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

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