diff --git a/cogs/Birthdays.py b/cogs/Birthdays.py index f565ef5..7ec936e 100644 --- a/cogs/Birthdays.py +++ b/cogs/Birthdays.py @@ -173,7 +173,7 @@ async def next(self, inter: disnake.ApplicationCommandInteraction): # gets the next birthday's user next_birthday = upcoming_birthdays[0]["user"] # checks if user is in the guild - while await inter.guild.fetch_member(next_birthday.user_id) is None: + while next_birthday.user_id not in inter.guild.members: upcoming_birthdays.pop(0) next_birthday = upcoming_birthdays[0]["user"]