How to remove default help command or change the format of it in discord.py
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!
You will need to remove the command for example
client.remove_command('help')
you will need to put it under
client = commands.Bot
it will be like
client = commands.Bot(command_prefix = 'somethingelse')
client.remove_command('help')
These answers aren't correct. 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.