Skip to content

Instantly share code, notes, and snippets.

View Coolitoyce's full-sized avatar
🤕
School

Coolitoyce Coolitoyce

🤕
School
View GitHub Profile
@pinheaded
pinheaded / cog_ext.py
Last active June 11, 2024 19:54
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 March 15, 2024 22:02
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 June 4, 2024 18:06
Walkthrough guide on subclassing HelpCommand