CommandService.optionType() - shysolocup/noscord.js GitHub Wiki

gets option types
arguments:

  • type Any

commands.optionType("user"); // 6

Type Alternate Bit
sub_command • sub_com
• sub
1
sub_command_group • sub_com_group
• sub_group
2
string • str 3
integer • int 4
booelan • bool 5
user • member 6
channel None 7
roles None 8
mentionable • mention 9
number • num 10
attachment • file 11


⚠️ **GitHub.com Fallback** ⚠️