how to check command group and subcommand

if (i.isAutocomplete() && i.options?.getSubcommandGroup(false) === "cosmetics" && i.options?.getSubcommand(false) === "search")
if (i.isAutocomplete() && i.options?.getSubcommandGroup(false) === "cosmetics" && i.options?.getSubcommand(false) === "search")
is there any way better to check the options of the command without all the "false"
6 Replies
d.js docs
d.js docs3y ago
• What's your exact discord.js npm list discord.js and node node -v version? • Post the full error stack trace, not just the top part! • Show your code! • Explain what exactly your issue is. • Not a discord.js issue? Check out #useful-servers.
Jaworek
Jaworek3y ago
remove the false its false by default
Creeper
CreeperOP3y ago
i don't think so because i am getting error without passing false
Creeper
CreeperOP3y ago
Creeper
CreeperOP3y ago
yeah its not
Creeper
CreeperOP3y ago
oh how come get subcommand still throws an error but get subcommand group doesn't
Want results from more Discord servers?
Add your server