fix(logger): awaited a coroutine

This commit is contained in:
Seaswimmer 2024-05-24 03:01:04 -04:00
parent 1a26d82c36
commit 24703bb32f
Signed by untrusted user: cswimr
GPG key ID: 5D671B5D03D65A7F

View file

@ -18,11 +18,11 @@ class Logger(commands.Cog):
if not payload.guild_id: if not payload.guild_id:
return return
if self.bot.cog_disabled_in_guild(self, payload.guild_id): if await self.bot.cog_disabled_in_guild(self, payload.guild_id):
return return
#if payload.channel_id in await config.guild(payload.guild_id).message_ignored_channels(): if payload.channel_id in await config.guild(payload.guild_id).message_ignored_channels():
#return return
if payload.cached_message: if payload.cached_message:
if payload.cached_message.author.bot: if payload.cached_message.author.bot: