how do i check if an command's interaction has a subcommand that i can read with getSubcommand()

it throws an error if i do getSubCommand and there isnt one
3 Replies
Unknown User
Unknown User3y ago
Message Not Public
Sign In & Join Server To View
Squid
Squid3y ago
If you do getSubcommand(false), it will just return null instead of throwing an error
skeddles
skeddlesOP3y ago
perfect, thanks
Want results from more Discord servers?
Add your server