-
Notifications
You must be signed in to change notification settings - Fork 187
Add functions to removes all commands. #41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
This is good function, but there are some questions.
|
Actually as Yes, |
Well... |
Okay I see, you are right, So I moved into import discord
import discord_slash
from discord_slash.utils import manage_commands
bot = discord.Client()
slash = discord_slash.SlashCommand(bot)
@bot.event
async def on_ready(self):
await manage_commands.remove_all_commands(slash)
await manage_commands.remove_all_commands_in(slash, 'global')
await slash.register_all_commands()
bot.run(token) It is good ? If yes, i commit this. |
Looks good! |
Merging this pull request. Thank you for contributing! |
Hello !
I made two functions to delete all commands everywhere or just in one area (global or guild).
Why ?
I did this because I wanted to delete all the commands from a server and then put back only the ones I wanted, so that I could remove the ones that no longer exist and add the new ones.
Exemple :
Thank you for reading, have a nice day !