If I want to have my own help command, how do I delete the existing help command?
http://discordpy.readthedocs.io/en/rewrite/ext/commands/api.html#discord.Bot.formatter
By default, it uses the HelpFormatter. Check it for more info on how to override it. If you want to change the help command completely (add aliases, etc) then a call to remove_command() with ‘help’ as the argument would do the trick.
Where do we put the remove command? Do we put it in @bot.event ?
no you do that when instantiating your Bot instance or when loading the cog (if your command is in a cog)
So put it at where?
A line in front of bot.run?
bot=commands.Bot(...)
bot.remove_command("help")
#insert rest of code here
bot.run("<token>")
OR
#taking this to be a cog
def setup(bot):
bot.remove_command("help")
bot.add_cog(MyHelpCommandClass(bot))
Ok thanks!
Most helpful comment
OR