Call Cog.listener (#25)
This commit is contained in:
parent
85595256c3
commit
fc5b959558
1 changed files with 2 additions and 2 deletions
|
@ -8,7 +8,7 @@ class RolePersistence(Cog):
|
|||
def __init__(self, bot):
|
||||
self.bot = bot
|
||||
|
||||
@Cog.listener
|
||||
@Cog.listener()
|
||||
async def on_raw_member_remove(self, payload: RawMemberRemoveEvent):
|
||||
save_roles = []
|
||||
for role in payload.user.roles:
|
||||
|
@ -20,7 +20,7 @@ class RolePersistence(Cog):
|
|||
if len(save_roles) > 0:
|
||||
add_user_roles(payload.user.id, save_roles)
|
||||
|
||||
@Cog.listener
|
||||
@Cog.listener()
|
||||
async def on_member_join(self, member: Member):
|
||||
user_roles = get_user_roles(member.id)
|
||||
if len(user_roles) > 0:
|
||||
|
|
Loading…
Reference in a new issue