fix(bot): 🐛 Servers leaderboard not updating.

This commit is contained in:
Nyeki.py
2024-10-19 01:15:27 -03:00
parent c8d835df4f
commit ae5e3efc8a
+5 -1
View File
@@ -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