diff options
author | 2021-06-16 08:45:42 +0200 | |
---|---|---|
committer | 2021-06-16 08:45:42 +0200 | |
commit | 1b9500b5f7ea0c44ea5023bb264567b05bec1da6 (patch) | |
tree | 2c7d4a44850550db252fc0cc7ef734df5d04c722 | |
parent | Fix wrong exception (diff) |
Use RedirectOutput.delete_delay
-rw-r--r-- | bot/exts/help_channels/_cog.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/bot/exts/help_channels/_cog.py b/bot/exts/help_channels/_cog.py index 3af474592..ce1530bc9 100644 --- a/bot/exts/help_channels/_cog.py +++ b/bot/exts/help_channels/_cog.py @@ -12,9 +12,10 @@ from discord.ext import commands from bot import constants from bot.bot import Bot +from bot.constants import Channels +from bot.constants import RedirectOutput from bot.exts.help_channels import _caches, _channel, _message, _name, _stats from bot.utils import channel as channel_utils, lock, scheduling -from bot.constants import Channels log = logging.getLogger(__name__) @@ -593,8 +594,8 @@ class HelpChannels(commands.Cog): await _caches.help_dm.delete(message.author.id) await bot_commands_channel.send( f"{message.author.mention} {constants.Emojis.cross_mark} " - "To receive updates on help channels you're active in, enable your DMs." - delete_after=10 + "To receive updates on help channels you're active in, enable your DMs.", + delete_after=RedirectOutput.delete_after ) return |