mirror of
https://github.com/AsgardEternal/DiscordWhitelist.git
synced 2024-12-28 22:29:13 -06:00
fixes
This commit is contained in:
parent
3b776fc972
commit
3b362ba01b
@ -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()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user