From 10cfeeefcd4eeed50753e5f7ce2a2e46c68448c1 Mon Sep 17 00:00:00 2001 From: Seaswimmer Date: Mon, 12 Aug 2024 20:32:14 -0400 Subject: [PATCH] fix(aurora): awaited a coroutine --- aurora/aurora.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aurora/aurora.py b/aurora/aurora.py index abc8e76..a5dc168 100644 --- a/aurora/aurora.py +++ b/aurora/aurora.py @@ -126,7 +126,7 @@ class Aurora(commands.Cog): """This method automatically adds roles to users when they join the server.""" if not await self.bot.cog_disabled_in_guild(self, member.guild): query = f"""SELECT moderation_id, role_id, reason FROM moderation_{member.guild.id} WHERE target_id = ? AND moderation_type = 'ADDROLE' AND expired = 0 AND resolved = 0;""" - results = Moderation.execute(query, (member.id,)) + results = await Moderation.execute(query, (member.id,)) for row in results: role = member.guild.get_role(row[1]) reason = row[2]