Fix fail update on start
This commit is contained in:
parent
46ea892bf5
commit
85d7b72f76
1 changed files with 4 additions and 0 deletions
|
@ -71,6 +71,10 @@ class Invite(commands.Cog):
|
||||||
for g in self.bot.guilds:
|
for g in self.bot.guilds:
|
||||||
self.invites[g.id] = await g.invites()
|
self.invites[g.id] = await g.invites()
|
||||||
|
|
||||||
|
@commands.Cog.listener()
|
||||||
|
async def on_ready(self):
|
||||||
|
await self.update_invites()
|
||||||
|
|
||||||
@commands.Cog.listener()
|
@commands.Cog.listener()
|
||||||
async def on_member_join(self, member: Member):
|
async def on_member_join(self, member: Member):
|
||||||
user_invites = await member.guild.invites()
|
user_invites = await member.guild.invites()
|
||||||
|
|
Reference in a new issue