diff options
| author | 2020-08-19 14:04:32 -0700 | |
|---|---|---|
| committer | 2020-08-19 14:04:32 -0700 | |
| commit | a2c05febd122db2d8f4e7d4743a08aef7c2fe5e0 (patch) | |
| tree | caea2937baf702600a13c3dc3c67d8944aea3157 | |
| parent | Merge pull request #1109 from python-discord/bug/mod/1065/unnominate-banned (diff) | |
| parent | msg rather than doc_embed (diff) | |
Merge pull request #1106 from AtieP/master
Add doc cleanup
| -rw-r--r-- | bot/cogs/doc.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/bot/cogs/doc.py b/bot/cogs/doc.py index 204cffb37..30c793c75 100644 --- a/bot/cogs/doc.py +++ b/bot/cogs/doc.py @@ -23,6 +23,7 @@ from bot.constants import MODERATION_ROLES, RedirectOutput from bot.converters import ValidPythonIdentifier, ValidURL from bot.decorators import with_role from bot.pagination import LinePaginator +from bot.utils.messages import wait_for_deletion log = logging.getLogger(__name__) @@ -391,7 +392,8 @@ class Doc(commands.Cog): await error_message.delete(delay=NOT_FOUND_DELETE_DELAY) await ctx.message.delete(delay=NOT_FOUND_DELETE_DELAY) else: - await ctx.send(embed=doc_embed) + msg = await ctx.send(embed=doc_embed) + await wait_for_deletion(msg, (ctx.author.id,), client=self.bot) @docs_group.command(name='set', aliases=('s',)) @with_role(*MODERATION_ROLES) |