Last active
April 12, 2020 12:40
-
-
Save multimeric/d47537182d23e8bb335dc296cd089211 to your computer and use it in GitHub Desktop.
Produces a TSV (table) that lists all emoji on your server and their IDs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Open up Sever Settings → Emoji in your browser | |
// Open the dev console using F12 | |
// Paste the below script into the dev tools console | |
let str = ""; | |
for (let emoj of document.querySelectorAll('div[class*=emojiRow][class*=card]')){ | |
str += emoj.children[1].innerText; | |
str += '\t' | |
str += emoj.children[0].style['background-image'].replace('url("https://cdn.discordapp.com/emojis/', '').replace('.png?v=1")', ''); | |
str += '\n' | |
} | |
console.log(str); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment