From 7245c778e4105da35c80bd6bd34f479b2123fb9d Mon Sep 17 00:00:00 2001 From: Red-GitHubBot <88117545+Red-GitHubBot@users.noreply.github.com> Date: Fri, 31 Dec 2021 03:03:11 +0100 Subject: [PATCH] [3.4] Only check for permissions when `check_permissions` is True (#5510) (#5511) (cherry picked from commit 1ecbe6cebb90317e9a7b499e43887bb84d2cdfb0) Co-authored-by: jack1142 <6032823+jack1142@users.noreply.github.com> Co-authored-by: jack1142 <6032823+jack1142@users.noreply.github.com> --- redbot/core/bot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/redbot/core/bot.py b/redbot/core/bot.py index fa363d5dc..94cc91249 100644 --- a/redbot/core/bot.py +++ b/redbot/core/bot.py @@ -1258,7 +1258,7 @@ class RedBase( if (user_setting := await self._config.user(user).embeds()) is not None: return user_setting else: - if not channel.permissions_for(channel.guild.me).embed_links: + if check_permissions and not channel.permissions_for(channel.guild.me).embed_links: return False if (channel_setting := await self._config.channel(channel).embeds()) is not None: