From 6647a3a15ee82bcc4024fa53d902b497a24c588f Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Mon, 23 Oct 2023 20:25:31 -0400 Subject: [PATCH] fix(moderation): use correct config value name for the log method --- moderation/moderation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/moderation/moderation.py b/moderation/moderation.py index 2c336f7..ed593ff 100644 --- a/moderation/moderation.py +++ b/moderation/moderation.py @@ -358,7 +358,7 @@ class Moderation(commands.Cog): async def log(self, interaction: discord.Interaction, moderation_id: int, resolved: bool = False): """This method sends a message to the guild's configured logging channel when an infraction takes place.""" - logging_channel_id = await self.config.guild(interaction.guild).logging_channel() + logging_channel_id = await self.config.guild(interaction.guild).log_channel() if logging_channel_id != " ": logging_channel = interaction.guild.get_channel(logging_channel_id) case = await self.fetch_case(moderation_id, interaction.guild.id)