elbkr / ticket-bot

discord.js v14 ticket bot w/mongoDB
MIT License
87 stars 11 forks source link

the bot does not turn on #11

Open Pipeeee1231 opened 2 years ago

Pipeeee1231 commented 2 years ago

image

elbkr commented 2 years ago

Hi, it’s not mongo, you have to kick the bot an invite it again with the invite link I specified in the readme. Replace REPLACE_THIS with your bot’s id

rafalohaki commented 1 year ago

i got an error while trying to run:


        throw new DiscordAPIError(data, "code" in data ? data.code : data.error, status, method, url, requestData);
              ^

DiscordAPIError[50035]: Invalid Form Body
options[0][UNION_TYPE_CHOICES]: Value of field "type" must be one of (3, 5, 10, 1, 2, 7, 4, 11, 8, 9, 6).
    at SequentialHandler.runRequest (/home/autarch/dcbot/ticket-bot/node_modules/@discordjs/rest/dist/index.js:667:15)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async SequentialHandler.queueRequest (/home/autarch/dcbot/ticket-bot/node_modules/@discordjs/rest/dist/index.js:464:14)
    at async REST.request (/home/autarch/dcbot/ticket-bot/node_modules/@discordjs/rest/dist/index.js:910:22) {```
elbkr commented 1 year ago

Hey, I think it's because the code is outdated. I'll update it when I have time