fix(moderation): fixed a bug in the log method
Some checks failed
Pylint / Pylint (3.10) (push) Failing after 55s

This commit is contained in:
Seaswimmer 2023-10-23 20:23:22 -04:00
parent 7ee1554080
commit 2d33c9ad71
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.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)