From 22a3f088cf7e7f3eaa2f863ae1e397f7d70912a7 Mon Sep 17 00:00:00 2001 From: Hawkpath Date: Wed, 11 Nov 2020 03:18:34 -0500 Subject: [PATCH] Turned verify_checks off automatically for the HelpCommand. This allows DM-only commands to show in a guild when help is called. --- sandpiper/help.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sandpiper/help.py b/sandpiper/help.py index 7add350..d792cf3 100644 --- a/sandpiper/help.py +++ b/sandpiper/help.py @@ -33,6 +33,10 @@ def is_dm_only(command: Command): class HelpCommand(DefaultHelpCommand): + def __init__(self, **options): + options.pop('verify_checks', None) + super().__init__(verify_checks=False, **options) + def shorten_text(self, text: str, suffix: str = ''): if len(text) + len(suffix) > self.width: return (text[:self.width - len(suffix) - 3]