fix(bot): 🐛 Servers leaderboard not updating.
This commit is contained in:
@@ -64,12 +64,16 @@ class Admin(base.Cog):
|
||||
guild = await self.bot.fetch_guild(server_map[0])
|
||||
|
||||
except errors.DiscordException:
|
||||
pass
|
||||
continue
|
||||
|
||||
servers_map[server_map[0]].name = guild.name
|
||||
|
||||
try:
|
||||
vanity = await guild.vanity_invite()
|
||||
|
||||
except errors.DiscordException:
|
||||
continue
|
||||
|
||||
if vanity is not None:
|
||||
servers_map[server_map[0]].vanity_code = vanity.code
|
||||
|
||||
|
||||
Reference in New Issue
Block a user