EQUENOS / dislash.py

A Python wrapper for discord slash-commands and buttons, designed to extend discord.py.

Home Page:https://dislashpy.readthedocs.io/en/latest

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Disable auto-registration of slash commands

piotr25691 opened this issue · comments

commented

How do I disable the automatic registration of slash commands?
My bot seems to have ratelimited itself with auto-registration.

The library makes 1 API request to automatically update all global commands and 1 API request for each guild with local commands. Your bot won't be ratelimited unless you register a command in a ton of guilds.
If you're registering the commands in all guilds where your bot is active, consider global registration instead.

commented

also one more thing:
when i updated the library i got a This interaction failed message and then the slash commands disappeared and never registered again. What happened?

If there're no commands in your code, the library unregisters all existing commands.
In other words, the lib keeps the registered slash commands in sync with your code

commented

The commands in my cog remained the same but the bot does not seem to register them and I can assure you that an hour has elapsed already.

commented

ok, it finally did register, ig that is it for the issue