Fix embed requested in DMs (#5635)

* Fix embed requested in DM's

* Add documentation

* black

* Address comments

* Unnecessary added line

* Use correct channel on context

* use correct var name

* More review stuff
This commit is contained in:
TrustyJAID
2022-03-22 14:04:45 -06:00
committed by GitHub
parent c69e8d31fd
commit 5a5b22003f
2 changed files with 18 additions and 8 deletions

View File

@@ -713,7 +713,7 @@ class RedHelpFormatter(HelpFormatterABC):
yield obj
async def embed_requested(self, ctx: Context) -> bool:
return await ctx.bot.embed_requested(channel=ctx.channel, command=red_help)
return await ctx.bot.embed_requested(channel=ctx, command=red_help)
async def command_not_found(self, ctx, help_for, help_settings: HelpSettings):
"""