Lukemul69
Lukemul69

Reputation: 187

Removing the default help command on discord

I have searched multiple places and they all say to do the same thing but the default help command still shows up when I run the command. I get the message discord.ext.commands.errors.CommandNotFound: Command "help" is not found on the print line but still get the help message on discord.

This is at the top of my script right under imports.

client = commands.Bot(command_prefix = '!')
client.remove_command('help')

Upvotes: 0

Views: 526

Answers (2)

Edison
Edison

Reputation: 1

client = commands.Bot(command_prefix = "#")
client.remove_command("help")

Also works

Upvotes: 0

Matthew1177
Matthew1177

Reputation: 73

According to the discordpy documentation, setting help_command to None when declaring the client solves ths issue.

client = commands.Bot(command_prefix = '!', help_command=None)

Upvotes: 1

Related Questions