Skip to content

Instantly share code, notes, and snippets.

View JDJGInc's full-sized avatar

JDJG JDJGInc

View GitHub Profile
@NovaFox161
NovaFox161 / december-summary.md
Created December 17, 2021 21:00
DDevs Q&A Summary 17/12/2021

DDevs Q&A December 2021 Summary - Happy Holidays!

Forward

This is a nonexhaustive summary of the DDevs Q&A stage. Most of the points below are paraphrased for brevity. Ephasis is my own unless explicitly stated, and my opinions on certain things may shine through. Please refer to a VOD of the stage for the exact wording from the Discord Developers.

Upcoming Features (and demos if available)

  • Application Commands Permissions V2
    • "Super super super close"
    • Will not release before the holidays because fixing things on christmas is just not cool
  • Closed beta testing will occur after the holidays
@MiataBoy
MiataBoy / slashcommands.md
Last active October 25, 2021 19:34
An explanation composed of reasons why Slash commands are not good.

Slash commands

Slash commands, as we know are one of discord's new features released for bots to integrate into discord servers better. However, these same slash commands are not very appreciated by many members of the developer community. Several reasons will be explained here.

Danny - former discord.py maintainer

First, we start off by including arguments from Danny - the former discord.py maintainer who stepped down, and archived discord.py. (Looking for a fork? Try https://github.com/iDevision/enhanced-discord.py).

The link to the full gist created by Danny in whereabouts to his leave from d.py can be found here.

Around July and August 2020, the Discord employees started talking to the people in the Discord Infrastructure server about the possibility of Slash Commands finally coming to Discord. This feature was one that had been in the talks since the very beginning of Discord's history, so some people were hyped it was finally c

What is possible?

Slash commands offer a way to integrate your bot commands directly into the Discord UI. However, these commands are still very limited and cannot replace every use-case for now. I'll explain the limitations and possibilities of this new feature a bit here.

Slash Commands work entirely through the Webhook API. Which introduces a number of moderation issues. See the Moderation section below. It also causes some Rate Limit Problems.

Things you can do with slash commands

  • Simple Q/A type commands that just take an input and return an answer
  • Simple commands that have side-effects such as kick/ban/music
@InterStella0
InterStella0 / HelpCommand_walkthrough_guide.md
Last active September 6, 2024 19:17
Walkthrough guide on subclassing HelpCommand
@Gladuin
Gladuin / tutorial.md
Last active January 19, 2024 11:04
This is a tutorial on how you can backup and restore your Discord favorite gifs (on windows)

This won't work anymore because Discord moved to cloud storage for the gifs

Backup

  1. Open Discord.
  2. Press CTRL, SHIFT and I on your keyboard at the same time.
  3. In the newly opened window, at the top, click the >> button, and then click on Application.
    Image 1
  4. Once in the Application tab, click the little triangle next to Local Storage, and then click on https://discordapp.com.
    Image 2
@advaith1
advaith1 / intents.md
Last active September 28, 2024 11:14
Discord Gateway Intents Explainer

Intents Explainer

If you're wondering what Gateway Intents are, what Privileged Intents are, why your bot can't see statuses, or why your bot can't see member joins anymore, then this page should explain it to you!

if you do not know what intents are, please read this entire page

Intro

First, a short explanation of how bots work: bots can make requests over the REST (HTTP) API to retreive information and do actions, and they get real-time updates from Discord in the form of websocket gateway events. They can also fetch server members via the gateway.

Examples of gateway events you are probably familiar with are Message Create (a message was sent) and Guild Member Add (a user joined a server).

@Soheab
Soheab / API's.md
Last active November 17, 2024 04:14
See here some of the API's you can use in your discord bot or anything

Some API's for you.

See here some of the API's you can use in your discord bot or anything. For any help or questions on how to use one, please contact the owner of the API and not me.

A much bigger list of APIs can be found here


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

The descriptions are mostly copied from the API, sometimes personal or from the dev.

@AXVin
AXVin / hotreload.py
Last active March 8, 2024 16:43
Cog for reloading extensions as they are edited
import os
import pathlib
import discord
from discord.ext import commands, tasks
# put your extension names in this list
# if you don't want them to be reloaded
IGNORE_EXTENSIONS = []
@Phxntxm
Phxntxm / custom_commands.py
Last active April 21, 2024 22:42
A pretty simplified way to implement custom commands into your bot.
from discord.ext import commands
# The check to ensure this is the guild used where the command was made
def guild_check(_custom_commands):
async def predicate(ctx):
return _custom_commands.get(ctx.command.qualified_name) and ctx.guild.id in _custom_commands.get(ctx.command.qualified_name)
return commands.check(predicate)
class CustomCommands(commands.Cog):
@Soheab
Soheab / timezones.md
Last active November 19, 2024 02:10
See here all timezones supported by Python PyTz and ZoneInfo!

⬇️ End

ℹ️ Information
All supported timezones by the pytz package, Python's built-in ZoneInfo and probably others too.
Use Ctrl/CMD + F to look for a specific timezone or use the Jump URLs
❗ Important ZoneInfo is case sensitive. What this means is that ETC/... should be Etc/...