Closed andyforprez closed 3 years ago
I fixed the problem myself by putting the names of the emojis e.g. red_circle etc. as the emoji itself inside a string and then simplified the for loop to
let reactions = [];
let emojiText = '**GUN ROLES**\n\n';
Object.entries(emojis).forEach(([emoji, role]) => {
reactions.push(emoji);
emojiText += `${emoji} = ${role}\n`;
});
Here is how I altered the code for myself. The red_circle and orange_circle emojis etc. are default Discord emojis. When I run the code, it gives the error
TypeError [EMOJI_TYPE]: Emoji must be a string or GuildEmoji/ReactionEmoji
. The first-message.js file is the same as the one in this repo, and even though I changed a lot of index.js, there are no problems in index.js that have to do with the error I am mentioning.