Skip to content

Commit 0f9e61c

Browse files
committed
Disable help command on discord
1 parent fc74b66 commit 0f9e61c

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

bin/discord

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ def build_subcommands(thor_class)
4444
subcommands = []
4545

4646
thor_class.commands.each_pair do |name, command|
47+
next if name == 'help'
48+
4749
cmd = {
4850
type: 1, # sub_command
4951
name: name,
@@ -61,6 +63,8 @@ def build_from_thor(thor_class)
6163
commands = []
6264

6365
thor_class.commands.each_pair do |name, command|
66+
next if name == 'help'
67+
6468
cmd = build_command(name, command.description)
6569
cmd[:options] =
6670
if thor_class.subcommand_classes.key?(name)

0 commit comments

Comments
 (0)