From bdce49c65b58002c4c7ecb3c317da63532114d4a Mon Sep 17 00:00:00 2001 From: Alexander Terry Date: Tue, 18 Jun 2024 15:23:46 -0800 Subject: [PATCH] scalar requests are always an object, even if they contain nothing --- alexBot/cogs/mudae.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/alexBot/cogs/mudae.py b/alexBot/cogs/mudae.py index 00c2fb3..3a4c52b 100644 --- a/alexBot/cogs/mudae.py +++ b/alexBot/cogs/mudae.py @@ -81,8 +81,8 @@ async def message_series_detector(self, message: discord.Message): matches = await session.scalars( sqlalchemy.select(db.MudaeSeriesRequest).where(db.MudaeSeriesRequest.series == series_name) ) - if matches: - mentions = [f"<@{match.requestedBy}>" for match in matches] + mentions = [f"<@{match.requestedBy}>" for match in matches] + if mentions: await msg.reply( f"Series Liked by {', '.join(mentions)}", allowed_mentions=discord.AllowedMentions(users=True) )