mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-12-21 08:42:32 -05:00
(cherry picked from commit 1ecbe6cebb)
Co-authored-by: jack1142 <6032823+jack1142@users.noreply.github.com>
Co-authored-by: jack1142 <6032823+jack1142@users.noreply.github.com>
This commit is contained in:
@@ -1258,7 +1258,7 @@ class RedBase(
|
|||||||
if (user_setting := await self._config.user(user).embeds()) is not None:
|
if (user_setting := await self._config.user(user).embeds()) is not None:
|
||||||
return user_setting
|
return user_setting
|
||||||
else:
|
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
|
return False
|
||||||
|
|
||||||
if (channel_setting := await self._config.channel(channel).embeds()) is not None:
|
if (channel_setting := await self._config.channel(channel).embeds()) is not None:
|
||||||
|
|||||||
Reference in New Issue
Block a user