Skip to content

Instantly share code, notes, and snippets.

@JeyyGit
JeyyGit / modal_implementation_example.py
Last active March 4, 2022 20:32
Rough implementation of modal in discord.py 2
import discord, secrets
class TextInput:
"""for storing our text input data"""
def __init__(self, payload):
self.type = payload['type']
self.custom_id = payload['custom_id']
self.style = payload['style']
self.label = payload['label']
self.min_length = payload.get('min_length')
@kkrypt0nn
kkrypt0nn / ansi-colors-discord.md
Last active May 27, 2025 12:29
A guide to ANSI on Discord

A guide to ANSI on Discord

Discord is now slowly rolling out the ability to send colored messages within code blocks. It uses the ANSI color codes, so if you've tried to print colored text in your terminal or console with Python or other languages then it will be easy for you.

Quick Explanation

To be able to send a colored text, you need to use the ansi language for your code block and provide a prefix of this format before writing your text:

\u001b[{format};{color}m
@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

@wasi-master
wasi-master / lucas_bad.md
Last active March 12, 2022 06:50
Why is lucas bad?
@DriftAsimov
DriftAsimov / hardhelp.py
Last active January 12, 2022 06:09
Discord.py hardcoded help command but it's better
@bot.command()
async def help(ctx: commands.Context, *, name: str = None):
name = name.strip()
if not name:
commands = bot.commands
embed = discord.Embed(title="Commands Menu", color=0x8DDFE3)
@Soheab
Soheab / API's.md
Last active May 9, 2025 13:17
See here some of the API's you can use in your discord bot or anything

Some APIs for you.

Here are some APIs you can use in your Discord bot or any other project. For any help or questions on how to use one, please contact the owner of the API and not me.

A bigger list of APIs can be found at: https://github.com/public-apis/public-apis


[TOKEN] = API requires a token to access some if not all endpoints.