fix(moderation): use correct config value name for the log method
Some checks failed
Pylint / Pylint (3.10) (push) Failing after 57s

This commit is contained in:
Seaswimmer 2023-10-23 20:25:31 -04:00
parent 2d33c9ad71
commit 6647a3a15e
No known key found for this signature in database
GPG key ID: 5019678FD9CF50D8

View file

@ -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)