mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-06 03:08:55 -05:00
Fix issues with embed_requested() (#2966)
* Fix issues with embed_requested() * Update embed_requested() Make embed_requested()'s user settings only affect DM's * Towncrier for #2966
This commit is contained in:
parent
efcf91e934
commit
ef3ac77bd8
1
changelog.d/2966.bugfix.rst
Normal file
1
changelog.d/2966.bugfix.rst
Normal file
@ -0,0 +1 @@
|
||||
Make embedset user only affect DM's
|
||||
@ -203,9 +203,7 @@ class RedBase(commands.GroupMixin, commands.bot.BotBase, RPCMixin): # pylint: d
|
||||
bool
|
||||
:code:`True` if an embed is requested
|
||||
"""
|
||||
if isinstance(channel, discord.abc.PrivateChannel) or (
|
||||
command and command == self.get_command("help")
|
||||
):
|
||||
if isinstance(channel, discord.abc.PrivateChannel):
|
||||
user_setting = await self.db.user(user).embeds()
|
||||
if user_setting is not None:
|
||||
return user_setting
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user