Closed ItsFantom closed 2 years ago
Node.js v16.6 is required
Thank you <3
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: [] } }`
Update the guildId inside the config file
I have this same problem, with my serverid and my bot id
` giveaway.message ??= await giveaway.fetchMessage().catch(() => {}); ^^^
SyntaxError: Unexpected token '??=' [90m at wrapSafe (internal/modules/cjs/loader.js:979:16)[39m [90m at Module._compile (internal/modules/cjs/loader.js:1027:27)[39m [90m at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)[39m [90m at Module.load (internal/modules/cjs/loader.js:928:32)[39m [90m at Function.Module._load (internal/modules/cjs/loader.js:769:14)[39m [90m at Module.require (internal/modules/cjs/loader.js:952:19)[39m [90m at require (internal/modules/cjs/helpers.js:88:18)[39m at Object. (C:\Users\Dima\Desktop\GiveawayBot\node_modules\[4mdiscord-giveaways[24m\index.js:3:23)
[90m at Module._compile (internal/modules/cjs/loader.js:1063:30)[39m
[90m at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)[39m`