fix(moderation): use correct config value name for the log method
Some checks failed
Pylint / Pylint (3.10) (push) Failing after 57s
Some checks failed
Pylint / Pylint (3.10) (push) Failing after 57s
This commit is contained in:
parent
2d33c9ad71
commit
6647a3a15e
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue