fix(antipolls): improved verbose logging for the cog_disabled_in_guild check
Some checks failed
Actions / Build Documentation (MkDocs) (push) Successful in 34s
Actions / Lint Code (Ruff & Pylint) (push) Failing after 52s

This commit is contained in:
Seaswimmer 2024-04-16 11:14:11 -04:00
parent b67b692201
commit dbe6fc2390
Signed by: cswimr
GPG key ID: 5D671B5D03D65A7F

View file

@ -54,7 +54,7 @@ class AntiPolls(commands.Cog):
return self.logger.verbose("Message from bot ignored") return self.logger.verbose("Message from bot ignored")
if await self.bot.cog_disabled_in_guild(self, message.guild): if await self.bot.cog_disabled_in_guild(self, message.guild):
return self.logger.verbose("Cog disabled in guild") return self.logger.verbose(f"Message ignored, cog is disabled in guild {message.guild.id}")
guild_config = await self.config.guild(message.guild).all() guild_config = await self.config.guild(message.guild).all()