fix(moderation): fixed a bug in the log method
Some checks failed
Pylint / Pylint (3.10) (push) Failing after 55s
Some checks failed
Pylint / Pylint (3.10) (push) Failing after 55s
This commit is contained in:
parent
7ee1554080
commit
2d33c9ad71
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.id).logging_channel()
|
||||
logging_channel_id = await self.config.guild(interaction.guild).logging_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