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:
DJtheRedstoner 2019-08-30 17:20:34 -04:00 committed by Michael H
parent efcf91e934
commit ef3ac77bd8
2 changed files with 2 additions and 3 deletions

View File

@ -0,0 +1 @@
Make embedset user only affect DM's

View File

@ -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