fix(aurora): awaited a coroutine
This commit is contained in:
parent
818ff810ea
commit
10cfeeefcd
1 changed files with 1 additions and 1 deletions
|
@ -126,7 +126,7 @@ class Aurora(commands.Cog):
|
||||||
"""This method automatically adds roles to users when they join the server."""
|
"""This method automatically adds roles to users when they join the server."""
|
||||||
if not await self.bot.cog_disabled_in_guild(self, member.guild):
|
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;"""
|
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:
|
for row in results:
|
||||||
role = member.guild.get_role(row[1])
|
role = member.guild.get_role(row[1])
|
||||||
reason = row[2]
|
reason = row[2]
|
||||||
|
|
Loading…
Reference in a new issue