-
Hello, I'm trying to deploy an app on Heroku, enabling slash commands for all servers. When testing, I did set the guild argument to my server id and it worked just fine. However, when I tried removing such argument (in order to make my slash commands work in all servers), I waited for about 12 hours and Discord still says my bot doesn't have slash commands implemented, and of course they don't work in any server, why's that? Here's how I've got everything set up:
Here are all permissions I enabled from the Discord Developer Portal: https://i.imgur.com/k0m7DrL.png And here's what Discord has to say about my bot not using slash commands: https://i.imgur.com/D7CIghL.png Any help is appreciated, thanks in advance! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
You're overwriting the You'll want to either combine the code inside the two functions, or sync your commands inside the |
Beta Was this translation helpful? Give feedback.
You're overwriting the
on_ready
handler defined yourClient
class when you define the event again and add it via the@event
decorator further below, as the library only supports having one of each event handler via theClient
class.You'll want to either combine the code inside the two functions, or sync your commands inside the
setup_hook
function instead.