Skip to content

Commit

Permalink
👍Join leave messages fix
Browse files Browse the repository at this point in the history
  • Loading branch information
bth123 committed Sep 24, 2024
1 parent fbd914e commit 283a677
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cogs/general/join_leave_messages.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def __init__(self, bot):

@commands.Cog.listener("on_member_join")
async def on_member_join(self, member):
if member.guild_id != GUILD:
if member.guild.id != GUILD:
return
greeting_msg = choice([
"Добро пожаловать, {0}. Мы надеемся, что ты принёс пиццу",
Expand All @@ -63,7 +63,7 @@ async def on_member_join(self, member):

@commands.Cog.listener("on_raw_member_remove")
async def on_raw_member_remove(self, payload):
if payload.guild_id != GUILD:
if payload.guild.id != GUILD:
return
user = payload.user
leaving_msg = choice([
Expand Down

0 comments on commit 283a677

Please sign in to comment.