Skip to content

Instantly share code, notes, and snippets.

Learning new programming languages!

Eejit Eejit43

Learning new programming languages!
View GitHub Profile

5-Oct-2022 Stage

API Updates

  • Command Picker Performance Experiment
    • UI Menu for slash commands
    • Pulls commands and checks permissions
    • Uses cache for time sensitivity
      • Modifications are in an experiment
  • OLD: Switching channels clears the cache
View discord-colored-text-generator.html
<!DOCTYPE html>
<html lang="en">
<link rel="icon" type="image/x-icon" href="/favicon.ico">
<title>Rebane's Discord Colored Text Generator</title>
<meta charset="UTF-8">
<meta name="description" content="Rebane's Discord Colored Text Generator">
<meta name="author" content="rebane2001">
JohannesMP /
Last active Nov 24, 2022 — forked from ExordiumX/betaenabler.js
Enabling Discord Dev Experiments on Discord for Windows (2022-02)

Enable Dev Experiments in Discord for Windows


This guide shows how to enable dev mode for the Discord desktop application running on Windows (as of February 2022).

This can be used to view beta experiments to try features currently in development that are included but hidden by default in Discord release builds.

kkrypt0nn /
Last active Nov 25, 2022
A guide to ANSI on Discord

Messages with colors:

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.

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:


The \u001b is the unicode for ESCAPE/ESC, see If you want to use it yourself without bots, then you need to copy paste the character from the website.

View Discord Experiments.js
webpackChunkdiscord_app.push([["wp_isdev_patch"], {}, r => cache=Object.values(r.c)]);
var UserStore = cache.find(m => m?.exports?.default?.getCurrentUser).exports.default;
var actions = UserStore._dispatcher._actionHandlers._orderedActionHandlers["CONNECTION_OPEN"];
var user = UserStore.getCurrentUser();
actions.find(n => === "ExperimentStore").actionHandler({
type: "CONNECTION_OPEN", user: {flags: user.flags |= 1}, experiments: [],
actions.find(n => === "DeveloperExperimentStore").actionHandler();
webpackChunkdiscord_app.pop(); user.flags &= ~1; "done";
Armster15 / TwemojiTutorial.html
Last active Aug 31, 2022
A simple HTML example on how to use Twemojis in your website!
View TwemojiTutorial.html
<!DOCTYPE html>
<html lang="en">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Twemoji Tutorial</title>
<!-- This retrieves the latest Twemoji script -->
<script src="" crossorigin="anonymous"></script>
ww9 /
Last active Nov 8, 2022
Emojis, UTF8, ASCII (one line) #misc

Collection of one line text art (◕‿◕✿)

Collection of emojis and one line text art like (╯°□°)╯︵ ┻━┻ 🤗

View discordjs-cheatsheet.js
// Discord all events!
// A quick and dirty fleshing out of the discord.js event listeners (not tested at all!)
// listed here ->
// Learn from this, do not just copy it mofo!
// Saved to ->
// Last Updated -> Halloween 2022
almostSouji /
Last active Oct 10, 2022
Discord.js: Collections but Cookies

Discord.js Collections explained with cookies


Have you ever played "impersonate the program"? No? Too bad, let's change that.
Imagine you are working at a cookie store and customers come over and ask you to retrieve cookies from storage (and your boss is a giant buttock that doesn't want to walk to the back so he lets you do all the work). You have a lot of boxes, you might say... a Collection of them.

Is this a terrible example to explain Collections with? Probably.
Will that stop me? Heck no!

"No, seriously, why the heck don't you explain this with anything that actually applies to Discord.js? Members, Messages, anything...?!"

thomasbnt /
Last active Nov 17, 2022
Code colors for embed discord.js

Here is an updated list of the colors that are currently implemented with a name

Name Int value Hex Code
Default 0 #000000
Aqua 1752220 #1ABC9C
DarkAqua 1146986 #11806A
Green 5763719 #57F287
DarkGreen 2067276 #1F8B4C
Blue 3447003 #3498DB