Discord auto-role reaction bot, getting emoji error

  bots, discord, discord.js, javascript, node.js

I’ve been digging the web for an answer but couldn’t get an answer so just figured it would be best to post here.

I’m using a function to send a message i my rule section on my discord server and when booting the bot i get an error referring to my rection base message and can’t put my finger on what is going on.

So here is the error I’m getting :

(node:1387) UnhandledPromiseRejectionWarning: TypeError [EMOJI_TYPE]: Emoji must be a string or GuildEmoji/ReactionEmoji
    at Message.react (/home/runner/La-chouffe/node_modules/discord.js/src/structures/Message.js:546:23)
    at addReactions (/home/runner/La-chouffe/first-message.js:3:11)
    at /home/runner/La-chouffe/first-message.js:17:9
    at processTicksAndRejections (internal/process/task_queues.js:97:5)
(node:1387) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:1387) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

here is the two files concerned :



as of right now I’ve looked many time and tried many things that have failed only thing is i get the message no problems in discord but no reactions whatsoever

Source: Ask Javascript Questions