Fix clear_commands for current py-cord version

This commit is contained in:
Aaron Riedel 2022-04-16 03:14:07 +00:00
parent 2b2ddf6cbd
commit 3962d97829

View file

@ -22,6 +22,7 @@ bot = commands.Bot(intents=intents, command_prefix=prefix)
@bot.event @bot.event
async def on_connect(): async def on_connect():
print("Bot ready on Version %s..." % discord.__version__) 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) bot.run(token)