#slash commands with the same name?

13 messages · Page 1 of 1 (latest)

undone sage

So recently I was creating a suggestion system, but when I tried to make all the commands starting with "/suggestion", I got the error that says basically that I have duplicated commands, but when I see some other bots, like Zira or Nekotina, they have commands starting with the same name, let me explain.

In the case of Zira, it's the /suggestions commands, there are like 6 commands starting with the same name, but how?
The same thing but with Nekotina with the /poll commands, there are 4 commands starting with the same name again.

I was asking this cuz I rlly want to make a suggestion system starting with the same name, but not having the characters - or _.

If someone know how, pls tell me how!

lucid vortexBOT
  • Consider reading #how-to-get-help to improve your question!
  • Explain what exactly your issue is.
  • Post the full error stack trace, not just the top part!
  • Show your code!
  • Issue solved? Press the button!
  • Marked as resolved by OP
polar cedar

Sub commands/ sub command groups

short geyserBOT

guide Slash Commands: Advanced command creation - Subcommands
read more

undone sage

yeah but like how

how do I make it

young stump

the guide right above your message quite literally explains how to do that

undone sage

So those are the codes I have, and that is the error my terminal throws.

What should I change to make the 2 commands have the same name? Something like this:

/poll channels
/poll roles

opal kelp

and actually 1 file for both, unless you add subcommand handling

icy tree
undone sage

aight, it worked

thx