From 16bd2f70de337b04df496d853fb6912f3133a4a4 Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Fri, 15 Dec 2023 13:56:22 -0500 Subject: [PATCH] fix(moderation): awaited coroutines --- moderation/moderation.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/moderation/moderation.py b/moderation/moderation.py index 1148a50..4413066 100644 --- a/moderation/moderation.py +++ b/moderation/moderation.py @@ -282,7 +282,7 @@ class Moderation(commands.Cog): await interaction.response.send_message(f"I do not have the `{permissions}` permission, required for this action.", ephemeral=True) return False - if self.config.guild(interaction.guild).use_discord_permissions() is True: + if await self.config.guild(interaction.guild).use_discord_permissions() is True: if self.check_permissions(interaction.user, permissions, guild=interaction.guild): await interaction.response.send_message(f"You do not have the `{permissions}` permission, required for this action.", ephemeral=True) return False @@ -304,7 +304,7 @@ class Moderation(commands.Cog): await interaction.response.send_message(content="You cannot moderate members with a role higher than the bot!", ephemeral=True) return False - immune_roles = self.config.guild(target.guild).immune_roles() + immune_roles = await self.config.guild(target.guild).immune_roles() for role in target.roles: if role.id in immune_roles: