fix(moderation): fixed audit log logging

This commit is contained in:
Seaswimmer 2023-12-15 17:54:38 -05:00
parent fd71f176f9
commit 8b8f05ce50
Signed by: cswimr
GPG key ID: 1EBC234EEDA901AE

View file

@ -133,7 +133,7 @@ class Moderation(commands.Cog):
async def autologger(self, entry: discord.AuditLogEntry):
"""This method automatically logs moderations done by users manually ("right clicks")."""
if not await self.bot.cog_disabled_in_guild(self, entry.guild):
if await self.config.guild(entry.guild.id).ignore_other_bots() is True:
if await self.config.guild(entry.guild).ignore_other_bots() is True:
if entry.user.bot or entry.target.bot:
return
else: