Replies: 1 comment 1 reply
-
It's the same concept. from discord import app_commands
@app_commands.command()
async def foo(interaction):
...
def setup(bot):
bot.tree.add_command(foo) |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I was looking to add slash commands from other files, with the same method I used for the classic commands
example:
Although I'm not sure how you would do that with CommandTree commands. Thank you in advance
Beta Was this translation helpful? Give feedback.
All reactions