reaction leaderboard

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 ?
4 Replies
d.js toolkit
d.js toolkit2w ago
- What's your exact discord.js npm list discord.js and node node -v version? - Not a discord.js issue? Check out #other-js-ts. - 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!
d.js docs
d.js docs2w ago
- For unicode emojis (twemoji): learn more - Custom emojis: /<?(a)?:?(\w{2,32}):(\d{17,19})>?/ learn more
treble/luna
treble/luna2w ago
these are regexes used to determine the type of emote you can store regular emotes just fine
Pronuncia bella
yep unicode storage works fine const identifier = emoji.id ?? emoji.name; doing this way