bug: command syncing fix

fixes command sync when adding bot to a server
This commit is contained in:
Yoruio
2022-07-11 21:17:15 -06:00
parent a181483d0d
commit dfb2d90e10

2
run.py
View File

@@ -36,6 +36,8 @@ class Bot(commands.Bot):
async def on_guild_join(self, guild):
print(f"Joined guild {guild.name}")
print(f"Syncing commands to {guild.name}")
self.tree.copy_global_to(guild=guild)
await self.tree.sync(guild=guild)
async def setup_hook(self):
print("Loading media server connectors")