From 1a40ffb4a65ae62431252bfed87b898e2dee5fa3 Mon Sep 17 00:00:00 2001 From: iiLarsH Date: Fri, 5 May 2023 01:44:28 +0200 Subject: [PATCH] made it global sync it syncs global again because server doesnt work but global does --- bot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bot.py b/bot.py index a60d9f3..4ebc1c6 100644 --- a/bot.py +++ b/bot.py @@ -25,8 +25,8 @@ async def slashload(): @client.command() async def sync(ctx): if ctx.message.author.id == 262672220260663297: - await client.tree.sync(guild=discord.Object(id=1100149380763373608)) - print('Command tree synced.') + synced = await client.tree.sync() + print(f'You synced {str(len(synced))} commands') else: await ctx.send('You must be the botowner to use this command!')