making a leaderboard for reactions, i wanna store in a json file the points , each point correspond to the emoji. Now i see, there are guild emojis and standard emojis. How do i differnetiate b/w them and store in json and when soeone reacts i can get from json and see this emoji is that one. Standard emojis dont have IDS but names and they are unicode i think? so just store them ?
#reaction leaderboard
8 messages · Page 1 of 1 (latest)
- What's your exact discord.js
npm list discord.jsand nodenode -vversion? - Not a discord.js issue? Check out #1081585952654360687.
- Consider reading #how-to-get-help to improve your question!
- Explain what exactly your issue is.
- Post the full error stack trace, not just the top part!
- Show your code!
- Issue solved? Press the button!
- For unicode emojis (twemoji): learn more
- Custom emojis:
/<?(a)?:?(\w{2,32}):(\d{17,19})>?/learn more
these are regexes used to determine the type of emote
you can store regular emotes just fine
Just store the Unicode, yeah
yep unicode storage works fine
const identifier = emoji.id ?? emoji.name;