This commit is contained in:
Skillet 2023-04-18 00:35:39 -04:00
parent 3b776fc972
commit 3b362ba01b

View File

@ -50,11 +50,11 @@ class Bot(commands.Bot):
f"Have access to the following guilds: "
f"{', '.join([str(guild.name) + ' (' + str(guild.id) + ')' for guild in self.guilds])}"
)
for guild in self.guilds:
self.tree.copy_global_to(guild=guild)
await self.tree.sync(guild=guild)
log.info(f"Synced guild: {guild.name}")
#
# for guild in self.guilds:
# self.tree.copy_global_to(guild=guild)
# await self.tree.sync(guild=guild)
# log.info(f"Synced guild: {guild.name}")
await self.tree.sync()