This guide will walkthrough the ways to create a custom help command by subclassing HelpCommand.
In this tutorial I will go through the entire length of pagination in discord.py
I kindly ask you to go through the entire thing, as it is not recommended to skip the subtopics because they are interconnected in some way.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from discord import app_commands | |
from discord.ext import commands | |
# all cogs inherit from this base class | |
class ExampleCog(commands.Cog): | |
def __init__(self, bot): | |
self.bot = bot # adding a bot attribute for easier access | |
# adding a command to the cog | |
@commands.command(name="ping") |