Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to remove or change the default help command?

How do you remove or at least change the format of the default help command in discord.py?

I think changing the format would be nice, I don't really like the format at all.

like image 951
User101 Avatar asked Aug 30 '17 03:08

User101


People also ask

How do I delete a command in discord?

Deleting specific commandsHead to Server Settings -> Integrations -> Bots and Apps and choose your bot. Then, right click a command and click Copy ID. You need to have Developer Mode open in new window enabled for this to show up! Where 'commandId' is the id of the command you want to delete.


2 Answers

The proper way to disable the help command according to the docs is to pass help_command=None into the constructor for discord.ext.commands.Bot, such as:

bot = commands.Bot(help_command=None)

or

class MyBot(commands.Bot):
    def __init__(self):
        super().__init__(help_command=None)

This also allows you the opportunity to pass your own help function into the help_command argument for different formatting.

like image 157
Spooky Avatar answered Oct 14 '22 15:10

Spooky


Try this:

bot.remove_command('help')

Put this at the top of your code, after your imports. Then create your own.

Or to format it check this out: Click here!

like image 20
Daniel Pearce Avatar answered Oct 14 '22 13:10

Daniel Pearce