From 85d7b72f769b814883bda76bab8eef277b58612d Mon Sep 17 00:00:00 2001 From: flifloo Date: Mon, 2 Nov 2020 18:18:19 +0100 Subject: [PATCH] Fix fail update on start --- extensions/invite.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/extensions/invite.py b/extensions/invite.py index 48204fd..85551b2 100644 --- a/extensions/invite.py +++ b/extensions/invite.py @@ -71,6 +71,10 @@ class Invite(commands.Cog): for g in self.bot.guilds: self.invites[g.id] = await g.invites() + @commands.Cog.listener() + async def on_ready(self): + await self.update_invites() + @commands.Cog.listener() async def on_member_join(self, member: Member): user_invites = await member.guild.invites()