I've got a discord bot running on Discord.js for a personal server and it's meant to react to certain phrases (good morning, good night, etc) with a message and a random emoji react pulled from an array.
My problem in particular is with this one: ["????", "????", "????", "⚰️", "????", "????"];
Unfortunately, the bot only seems to react with some of the specified emojis while others return a "DiscordAPIError: Unknown Emoji" error in the console.
For example, the bot will react with ???? but attempting to react with ⚰️ returns the error and the bot does not react. I've made sure to use only default unicode emojis but this still keeps happening.
EDIT:
This array is specifically for halloween themed reacts:
halreactoptions = ["????", "????", "????", "⚰️", "????", "????"];
halreactrandom = halreactoptions[Math.floor(Math.random()*halreactoptions.length)];
And then at the end of the bot's message code I have:
message.react(halreactrandom);
This works perfectly fine for my other emoji array, it seems that those Halloween themed ones are the only ones that return the unknown emoji error, and even then only specific ones. Very odd. I've written the code entirely in Atom, if that matters / helps.
scream, ghost, jack_o_lantern, coffin, bat, alien
, non of them are Halloween, did you meansjack_o_lantern
? – Orel Eraki