Skip to content

Instantly share code, notes, and snippets.

View Coolitoyce's full-sized avatar
Learning

Coolitoyce Coolitoyce

Learning
View GitHub Profile
@pinheaded
pinheaded / cog_ext.py
Last active September 18, 2024 18:59
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 July 25, 2024 23:48
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 September 6, 2024 19:17
Walkthrough guide on subclassing HelpCommand