How to call Slash commands in another slash command?
Hi! We are making a discord bot as a school project and our goal is to have a /creategroup command that uses already made commands as
/createroom
/createrole
/createcategory
For example our create room currently looks like this :
https://pastebin.com/VqKPtmiK
And we are trying to call it like this
https://pastebin.com/beEfLwsf
But we are currently running into a problem setting the Name for the room we are trying to create.
the error is something like :
"DiscordAPIError[50035]: Invalid Form Body"
"name[BASE_TYPE_REQUIRED]: this field is required"
Ideal functionality would be
When /creategroup is called
it creates a channel using the /createchannel command with the given option
and creates channels specified with the given name "groupname"general for example.
Is our creategroup command doomed to fail in the first place? Or how we should handle sending the option for the latter command.
/createroom
/createrole
/createcategory
For example our create room currently looks like this :
https://pastebin.com/VqKPtmiK
And we are trying to call it like this
https://pastebin.com/beEfLwsf
But we are currently running into a problem setting the Name for the room we are trying to create.
the error is something like :
"DiscordAPIError[50035]: Invalid Form Body"
"name[BASE_TYPE_REQUIRED]: this field is required"
Ideal functionality would be
When /creategroup is called
it creates a channel using the /createchannel command with the given option
and creates channels specified with the given name "groupname"general for example.
Is our creategroup command doomed to fail in the first place? Or how we should handle sending the option for the latter command.
Pastebin
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
Pastebin
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.