Skip to content

Instantly share code, notes, and snippets.

View voidoak's full-sized avatar
🎯
Focusing

voidoak_ voidoak

🎯
Focusing
View GitHub Profile
@voidoak
voidoak / tutorial.md
Last active April 23, 2024 12:24
Implementing your own help command in discord.py

Custom Help Command in discord.py

If you've ever built a bot, you've probably wanted to create a custom help command so it will present your commands and their features in exactly the manner you'd like. Perhaps you don't like the default help command, with its simple code block formatting and presenting all the commands, split up into different messages if you have a good amount of them. Perhaps you've seen other developers' custom help commands, but don't want or like to use embed fields. Well in that case, you can easily create and design your own help command to handle the output exactly the way you want it.

To do so, we'll be implementing a helpful base class that comes packaged in discord.py; namely, commands.HelpCommand. There are other help command base classes, but we'll be focusing on