From 702144d1ac88696cf045f12e1972cfe6f58335e5 Mon Sep 17 00:00:00 2001 From: Chris Lovering Date: Thu, 18 Aug 2022 18:35:25 +0100 Subject: Allow help in DMs Since there are some comands that work in DMs, we should allow the command to be ran there. --- bot/exts/core/help.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'bot/exts/core/help.py') diff --git a/bot/exts/core/help.py b/bot/exts/core/help.py index 7384c27d..eb7a9762 100644 --- a/bot/exts/core/help.py +++ b/bot/exts/core/help.py @@ -13,6 +13,7 @@ from bot import constants from bot.bot import Bot from bot.constants import Emojis from bot.utils.commands import get_command_suggestions +from bot.utils.decorators import whitelist_override from bot.utils.pagination import FIRST_EMOJI, LAST_EMOJI, LEFT_EMOJI, LinePaginator, RIGHT_EMOJI DELETE_EMOJI = Emojis.trashcan @@ -512,6 +513,7 @@ class Help(DiscordCog): """Custom Embed Pagination Help feature.""" @commands.command("help") + @whitelist_override(allow_dm=True) async def new_help(self, ctx: Context, *commands) -> None: """Shows Command Help.""" try: -- cgit v1.2.3