diff --git a/divent/bot.py b/divent/bot.py index 90fc49b..6492894 100644 --- a/divent/bot.py +++ b/divent/bot.py @@ -303,10 +303,10 @@ async def ical(entity_id: str): for guild in client.guilds: if await guild.get_or_fetch_member(int(entity_id)): for scheduled_event in guild.scheduled_events: - if user.id in [ - member.id + if any( + user.id == member.id for member in await scheduled_event.fetch_users().flatten() - ]: + ): event = make_event(scheduled_event) calendar.events.append(event)