From 3962d978298d50b700984cad072e288ffdf4fd81 Mon Sep 17 00:00:00 2001 From: Aaron Riedel Date: Sat, 16 Apr 2022 03:14:07 +0000 Subject: [PATCH] Fix clear_commands for current py-cord version --- clear_commands.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/clear_commands.py b/clear_commands.py index ea9ddd6..8fd85e0 100644 --- a/clear_commands.py +++ b/clear_commands.py @@ -22,6 +22,7 @@ bot = commands.Bot(intents=intents, command_prefix=prefix) @bot.event async def on_connect(): print("Bot ready on Version %s..." % discord.__version__) - await bot.sync_commands(unregister_guilds=[261575556708040705]) + await bot.sync_commands(commands=[], check_guilds=[261575556708040705]) + print("Press Ctl+c to exit now") bot.run(token) \ No newline at end of file