[V3 Core] implement commands and settings for embeds (#1437)

* [V3 Core] add settings for whether to use embeds or not

* Implement commands to toggle embed settings

* Add a function to context for finding whether to use embeds or not

* Hide [p]embedset for now

* Move embed_requested to bot

* Add a simple helper in context
This commit is contained in:
palmtree5
2018-03-20 16:17:40 -08:00
committed by Kowlin
parent 01b9843883
commit 83471e0866
3 changed files with 135 additions and 2 deletions

View File

@@ -124,3 +124,16 @@ class RedContext(commands.Context):
# or chanel is a DM
await query.delete()
return ret
async def embed_requested(self):
"""
Simple helper to call bot.embed_requested
Returns
-------
bool:
:code:`True` if an embed is requested
"""
return await self.bot.embed_requested(
self.channel, self.author, command=self.command
)