ZeroDiscord / Giveaway

Easy To Use Giveaway Bot For Discord Written In Discord.js v14. Ft. Slash Commands & Select Menus. Make Giveaways and seamlessly enjoy giveaways on your discord server with advanced features such as role and server requirements!
Creative Commons Zero v1.0 Universal
148 stars 131 forks source link

User blocked the bot #6

Closed ElTuna closed 3 years ago

ElTuna commented 3 years ago

When a user that blocked the bot reacts to the giveaway... the bot crashes with this error.


/root/bots/sorteos/node_modules/discord.js/src/rest/RequestHandler.js:349
      throw new DiscordAPIError(data, res.status, request);
            ^

DiscordAPIError: Reaction blocked
    at RequestHandler.execute (/root/bots/sorteos/node_modules/discord.js/src/rest/RequestHandler.js:349:13)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async RequestHandler.push (/root/bots/sorteos/node_modules/discord.js/src/rest/RequestHandler.js:50:14)
    at async MessageManager.react (/root/bots/sorteos/node_modules/discord.js/src/managers/MessageManager.js:193:5)
    at async Message.react (/root/bots/sorteos/node_modules/discord.js/src/structures/Message.js:720:5) {
  method: 'put',
  path: '/channels/904338272795369472/messages/904773949395697694/reactions/%E2%9C%85/@me',
  code: 90001,
  httpStatus: 403,
  requestData: { json: undefined, files: [] }
}```
ZeroDiscord commented 3 years ago

Fixed as of - https://github.com/ZeroDiscord/Giveaway/commit/ec19fbeb3e1612f9e18ff55c9fa23b6fee7b5a51 Thanks for reporting!