Skip to content

Instantly share code, notes, and snippets.

Avatar
💻
Learning new programming languages!

Eejit Eejit43

💻
Learning new programming languages!
View GitHub Profile
View Stage-5-Oct-2022.md

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">
<head>
<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">
<style>
/*
@JohannesMP
JohannesMP / EnableDiscordDevExperiments.md
Last active Nov 24, 2022 — forked from ExordiumX/betaenabler.js
Enabling Discord Dev Experiments on Discord for Windows (2022-02)
View EnableDiscordDevExperiments.md

Enable Dev Experiments in Discord for Windows

image

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
kkrypt0nn / ansi-colors-discord.md
Last active Nov 25, 2022
A guide to ANSI on Discord
View ansi-colors-discord.md

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:

\u001b[{format};{color}m

The \u001b is the unicode for ESCAPE/ESC, see http://www.unicode-symbol.com/u/001B.html. 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 => n.name === "ExperimentStore").actionHandler({
type: "CONNECTION_OPEN", user: {flags: user.flags |= 1}, experiments: [],
});
actions.find(n => n.name === "DeveloperExperimentStore").actionHandler();
webpackChunkdiscord_app.pop(); user.flags &= ~1; "done";
@Armster15
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">
<head>
<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="https://twemoji.maxcdn.com/v/latest/twemoji.min.js" crossorigin="anonymous"></script>
@ww9
ww9 / _description.md
Last active Nov 8, 2022
Emojis, UTF8, ASCII (one line) #misc
View _description.md

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 -> https://discord.js.org/#/docs/main/stable/class/Client
// Learn from this, do not just copy it mofo!
//
// Saved to -> https://gist.github.com/koad/316b265a91d933fd1b62dddfcc3ff584
// Last Updated -> Halloween 2022
/*
@almostSouji
almostSouji / cookiecollections.md
Last active Oct 10, 2022
Discord.js: Collections but Cookies
View cookiecollections.md

Discord.js Collections explained with cookies

Intro

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
thomasbnt / code_colors_discordjs.md
Last active Nov 17, 2022
Code colors for embed discord.js
View code_colors_discordjs.md

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