Skip to content

slash commands work only with (await bot.register_commands(guild_id=guild.id)) #1178

Closed Answered by NeloBlivion
xa1era-dev asked this question in Q&A
Discussion options

You must be logged in to vote

You overwrote on_connect, which normally handles command syncing. In on_connect, you should add await bot.sync_commands()
Also bear in mind global commands can take up to an hour to register.

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@xa1era-dev
Comment options

@NeloBlivion
Comment options

@xa1era-dev
Comment options

@Dorukyum
Comment options

Answer selected by Dorukyum
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants