Parse Option Type String To Option Type Number
function CommandOptionType(OptionType)
OptionType
(String) :
SUB_COMMAND
SUB_COMMMAND_GROUP
STRING
INTEGER
BOOLEAN
USER
CHANNEL
ROLE
MENTIONABLE
NUMBER
ATTACHMENT
Parse Command Permission Type String To Command Type Number
function CommandType(ApplicationCommandType)
ApplicationCommandType
(String) :
CHAT_INPUT
USER
MESSAGE
Parse Command Type String To Command Permission Type Number
function CommandPermissionType(CommandPermissionType)
CommandPermissionType
(String) :
ROLE
USER
Parse Button Style String To Button Style Number
function ButtonStyle(ButtonStyle)
ButtonStyle
(String) :
PRIMARY
SECONDARY
SUCCESS
WARNING
LINK
Parse Text Input Style String To Text Input Style Number
function TextInputStyle(InputStyle)
InputStyle
(String) :
SHORT
PARAGRAPH