Jump to content

Poll Ended, Bot Didn't Post

Not a Bug 1.1

dustyhansen
dustyhansen

Posted

So my first poll ended and the bot didn't do anything. The poll is still open and there was no post indicating a winner. I checked the console for the bot and saw the following:

11-07 01:30:28 DiscordAPIError[50013]: Missing Permissions
11-07 01:30:28     at handleErrors (/home/container/node_modules/@discordjs/rest/dist/index.js:727:13)
11-07 01:30:28     at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
11-07 01:30:28     at async SequentialHandler.runRequest (/home/container/node_modules/@discordjs/rest/dist/index.js:1128:23)
11-07 01:30:28     at async SequentialHandler.queueRequest (/home/container/node_modules/@discordjs/rest/dist/index.js:959:14)
11-07 01:30:28     at async _REST.request (/home/container/node_modules/@discordjs/rest/dist/index.js:1272:22)
11-07 01:30:28     at async ReactionManager.removeAll (/home/container/node_modules/discord.js/src/managers/ReactionManager.js:63:5)
11-07 01:30:28     at async ReactionCollector.<anonymous> (/home/container/commands/poll.js:323:25) {
11-07 01:30:28   requestBody: { files: undefined, json: undefined },
11-07 01:30:28   rawError: { message: 'Missing Permissions', code: 50013 },
11-07 01:30:28   code: 50013,
11-07 01:30:28   status: 403,
11-07 01:30:28   method: 'DELETE',
11-07 01:30:28   url: 'https://discord.com/api/v10/channels/780210834323275807/messages/1303531910047338586/reactions'
11-07 01:30:28 }

What permission is it missing exactly? Your documentation doesn't specify what permissions the bot needs, so I had to guess.

Also, is there any way to recover from this or is this first poll toast now?

Drxp

Posted (edited)

The bot is missing permissions for the serevr.. I normal just say give the bot admin on servers. but if you want a list of all permissions i can add one

 

Edited by Drxp
Drxp

Posted

Changed Status from Pending to Not a Bug

dustyhansen

Posted

Did you not see my messages under the code?

 

Drxp

Posted (edited)

Go into the polls folder then the polls file. You should see

  "active": false,

set to true and restart the bot, should end the poll

 

Edited by Drxp
  • Like 1
1.4m

Downloads

Total number of downloads.

6.9k

Customers

Total customers served.

102.4k

Files Sold

Total number of files sold.

2.1m

Payments Processed

Total payments processed.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.