Skip to content

Instantly share code, notes, and snippets.

View Coolitoyce's full-sized avatar
💫
Determination

Coolitoyce Coolitoyce

💫
Determination
View GitHub Profile
@pinheaded
pinheaded / cog_ext.py
Last active October 25, 2025 11:58
a basic cog + extension example for discord.py v2
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")
@InterStella0
InterStella0 / Pagination_walkthrough.md
Last active April 3, 2025 19:53
A walkthrough on action based pagination in discord.py

Pagination Walkthrough in discord.py

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.

Table Content

@InterStella0
InterStella0 / HelpCommand_walkthrough_guide.md
Last active July 7, 2025 05:35
Walkthrough guide on subclassing HelpCommand