Skip to content

Instantly share code, notes, and snippets.

Avatar
👨‍💻
hi

advaith advaith1

👨‍💻
hi
View GitHub Profile
@advaith1
advaith1 / discordjs-slash-commands.md
Last active Jun 9, 2022
Slash Commands in Discord.js
View discordjs-slash-commands.md
@advaith1
advaith1 / intents.md
Last active Jun 1, 2022
Discord Gateway Intents Explainer
View intents.md

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).

View discovery-categories.json
[
{
"id": 0,
"name": {
"default": "General"
},
"is_primary": true
},
{
"id": 15,
View discord-loading-messages.md
  • LOADING_LINE_1: "Discord was almost called Bonfire before we picked our name. It was meant to be nice and cozy."
  • LOADING_LINE_2: "Discord was almost called Wyvern before we picked our name. Not too proud of that one."
  • LOADING_LINE_3: "Our logo's name is Clyde."
  • LOADING_LINE_4: 'There are a bunch of hidden "Easter Eggs" in the app that happen when you click certain things...'
  • LOADING_LINE_5: "Discord started as a game company making a mobile game called Fates Forever."
  • LOADING_LINE_6: "Discord’s official birthday is May 13, 2015."
  • LOADING_LINE_7: "We came up with the idea of Discord Nitro over morning breakfast potatoes."
  • LOADING_LINE_8: "Our mascot, Wumpus, was originally created as a character with no friends :("
  • LOADING_LINE_9: "In Discord's early days, light theme was the only theme. Scary times."
  • LOADING_LINE_10: "In the ancient days, Discord started as a browser-only app."
@advaith1
advaith1 / top bots.md
Last active Jun 21, 2022
The top Discord bots ranked by server count
View top bots.md
Rank Bot Approximate Server Count Library
1 MEE6 18,500,000 Custom Python
2 Rythm 🪦 16,700,000 JDA
3 Groovy 🪦 12,000,000 JDA, Discord4J
4 Dank Memer 8,980,000 Eris
5 Dyno 7,060,000
View keybase.md

Keybase proof

I hereby claim:

  • I am advaith1 on github.
  • I am advaithj (https://keybase.io/advaithj) on keybase.
  • I have a public key ASByKvk4xRuUQK_xYamwjpeAvJjeMUq3HuYmR63yEt0ULQo

To claim this, I am signing this object:

View wordflags.md

Word Flags

  • a: The word is offensive.
  • b: The word might be found in most dictionaries.
  • c: The pronunciation is known with confidence. It was not automatically generated.
@advaith1
advaith1 / drp-ext-doc.md
Last active Mar 8, 2022
Documentation for the Discord Rich Presence extension
View drp-ext-doc.md

Discord Rich Presence Extension Documentation

0. Create an app

First, create an application at Discord's New App page.

Set the App Name to the title of your Rich Presence playing status. For example, if you want Playing with discord, set the app name to with discord. You don't need to set a Redirect URI, Description, or App Icon, just click Create App. New App screenshot

Next, click Enable Rich Presence here: Enable Rich Presence screenshot

Now you can upload your images.

@advaith1
advaith1 / redirect.html
Created Dec 21, 2017
Redirects the page to a new url.
View redirect.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>Redirecting...</title>
<meta HTTP-EQUIV="REFRESH" content="0; url=/newurl">
<link rel="canonical" href="/newurl" /></head>
<body>
<a href="/newurl">Click here if you are not redirected automatically.</a></body>
</html>
View dbl-dark.css
<!--- page style --->
<style>
.page {
color: #ffffff !important;
}
p {
color: #ffffff !important;
}
html {
background-color: #2C2F33 !important;