From 1b2b407c7744b31db1bfa7035f501482a69c4d73 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?emir=20=C3=B6ncel?= <0x16c3@gmail.com> Date: Tue, 17 Aug 2021 22:23:31 +0300 Subject: [PATCH] Fix client user on permission checks --- cogs/controller.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cogs/controller.py b/cogs/controller.py index 93a6688..0ecb134 100644 --- a/cogs/controller.py +++ b/cogs/controller.py @@ -354,7 +354,7 @@ async def on_ready(self): await database.feed_remove([item]) continue - permissions = channel.permissions_for(self.client) + permissions = channel.permissions_for(channel.guild.me) if not permissions: logger.debug( f"Could not load <{item['username']}:{item['channel']}:{item['type']}> - Invalid permissions" @@ -452,7 +452,7 @@ async def _activity(self, ctx: SlashContext, username: str): ) return - permissions = ctx.channel.permissions_for(self.client) + permissions = ctx.channel.permissions_for(ctx.guild.me) if not permissions or not permissions.send_messages: embed = discord.Embed( title="`Warning`",