Slash teams in multiple guilds #8220
-
Hello! I would like to ask how do I use slash commands for multiple guilds? To bot works in all invited guilds |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Your question is a little confusing, however, I'll try my best to answer: If you want to make an app_command for a specific guild(s) you can use the If you're talking about using app_commands in all guilds meaning globally, then you omit the |
Beta Was this translation helpful? Give feedback.
Your question is a little confusing, however, I'll try my best to answer:
If you want to make an app_command for a specific guild(s) you can use the
app_commands.guilds
decorator, then callCommandTree.sync()
with the guild(s) you would like to sync those commands to.If you're talking about using app_commands in all guilds meaning globally, then you omit the
app_commands.guilds
decorator and callCommandTree.sync()
without any parameters.