fix(antipolls): awaited a coroutine

This commit is contained in:
Seaswimmer 2024-04-16 10:49:20 -04:00
parent 3da2d74a48
commit 602d759e67
Signed by untrusted user: cswimr
GPG key ID: 5D671B5D03D65A7F

View file

@ -53,7 +53,7 @@ class AntiPolls(commands.Cog):
if message.author.bot:
return self.logger.verbose("Message from bot ignored")
if 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")
guild_config = await self.config.guild(message.guild).all()