Androz2091 / discord-giveaways-bot

🎁Giveways Bot using the discord-giveaways package
ISC License
202 stars 167 forks source link

Bot isn't starting. #97

Closed ItsFantom closed 2 years ago

ItsFantom commented 2 years ago

` giveaway.message ??= await giveaway.fetchMessage().catch(() => {}); ^^^

SyntaxError: Unexpected token '??='  at wrapSafe (internal/modules/cjs/loader.js:979:16)  at Module._compile (internal/modules/cjs/loader.js:1027:27)  at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)  at Module.load (internal/modules/cjs/loader.js:928:32)  at Function.Module._load (internal/modules/cjs/loader.js:769:14)  at Module.require (internal/modules/cjs/loader.js:952:19)  at require (internal/modules/cjs/helpers.js:88:18) at Object. (C:\Users\Dima\Desktop\GiveawayBot\node_modules\discord-giveaways\index.js:3:23)  at Module._compile (internal/modules/cjs/loader.js:1063:30)  at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)`

Nico105 commented 2 years ago

Node.js v16.6 is required

ItsFantom commented 2 years ago

Thank you <3

ItsFantom commented 2 years ago

Updated but:

` throw new DiscordAPIError(data, res.status, request); ^

DiscordAPIError: Missing Access at RequestHandler.execute (C:\Users\Dima\Desktop\GiveawayBot\node_modules\discord.js\src\rest\RequestHandler.js:298:13) at processTicksAndRejections (node:internal/process/task_queues:96:5) at async RequestHandler.push (C:\Users\Dima\Desktop\GiveawayBot\node_modules\discord.js\src\rest\RequestHandler.js:50:14) at async ApplicationCommandManager.fetch (C:\Users\Dima\Desktop\GiveawayBot\node_modules\discord.js\src\managers\ApplicationCommandManager.js:97:18) at async module.exports (C:\Users\Dima\Desktop\GiveawayBot\node_modules\discord-sync-commands\index.js:12:29) { method: 'get', path: '/applications/843386024113602591/guilds/843032740281581578/commands', code: 50001, httpStatus: 403, requestData: { json: undefined, files: [] } }`

Nico105 commented 2 years ago

Update the guildId inside the config file

DevKilioZOfficiel commented 2 years ago

I have this same problem, with my serverid and my bot id

Nico105 commented 2 years ago

I remembered: https://github.com/Androz2091/discord-giveaways-bot/issues/92#issuecomment-914492311