mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-06 03:08:55 -05:00
Only check for permissions when check_permissions is True (#5510)
This commit is contained in:
parent
a787033e1d
commit
1ecbe6cebb
@ -1246,7 +1246,7 @@ class Red(
|
|||||||
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:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user