Skip to content

CommandService.optionType()

github-actions[bot] edited this page Sep 30, 2024 · 2 revisions

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


🛈 Client

🛈 AddonService

🛈 AttachmentService

🛈 ChannelService

🛈 CommandService

🛈 ComponentService

🛈 ErrorService

🛈 EventService

🛈 ExpressionService

🛈 GuildService

🛈 LogService

🛈 MessageService

🛈 PermissionService

🛈 RoleService

🛈 StorageService

🛈 TypeService

🛈 UserService

🛈 UtilService

🛈 VoiceService


Clone this wiki locally