Skip to content

Commit

Permalink
Turned verify_checks off automatically for the HelpCommand. This allo…
Browse files Browse the repository at this point in the history
…ws DM-only commands to show in a guild when help is called.
  • Loading branch information
Phanabani committed Nov 11, 2020
1 parent 61d7eb4 commit 22a3f08
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions sandpiper/help.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit 22a3f08

Please sign in to comment.