./node_modules/@discordjs/rest/dist/index.js:722
throw new DiscordAPIError(data, "code" in data ? data.code : data.error, status, method, url, requestData);
^
DiscordAPIError[50001]: Missing Access
at handleErrors (./node_modules/@discordjs/rest/dist/index.js:722:13)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async SequentialHandler.runRequest (./node_modules/@discordjs/rest/dist/index.js:1120:23)
at async SequentialHandler.queueRequest (./node_modules/@discordjs/rest/dist/index.js:953:14)
at async _REST.request (./node_modules/@discordjs/rest/dist/index.js:1266:22)
at async PermissionOverwriteManager.upsert (./node_modules/discord.js/src/managers/PermissionOverwriteManager.js:107:5)
at async ./commands/mute.js:134:13 {
requestBody: {
files: undefined,
json: {
id: '767335568647782441',
type: 1,
allow: PermissionsBitField { bitfield: 0n },
deny: PermissionsBitField { bitfield: 70643622086656n }
}
},
rawError: { message: 'Missing Access', code: 50001 },
code: 50001,
status: 403,
method: 'PUT',
url: 'https://discord.com/api/v10/channels/1203231726688538635/permissions/767335568647782441'
}
Node.js v18.16.0
./node_modules/@discordjs/rest/dist/index.js:722
throw new DiscordAPIError(data, "code" in data ? data.code : data.error, status, method, url, requestData);
^
DiscordAPIError[50001]: Missing Access
at handleErrors (./node_modules/@discordjs/rest/dist/index.js:722:13)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async SequentialHandler.runRequest (./node_modules/@discordjs/rest/dist/index.js:1120:23)
at async SequentialHandler.queueRequest (./node_modules/@discordjs/rest/dist/index.js:953:14)
at async _REST.request (./node_modules/@discordjs/rest/dist/index.js:1266:22)
at async PermissionOverwriteManager.upsert (./node_modules/discord.js/src/managers/PermissionOverwriteManager.js:107:5)
at async ./commands/mute.js:134:13 {
requestBody: {
files: undefined,
json: {
id: '767335568647782441',
type: 1,
allow: PermissionsBitField { bitfield: 0n },
deny: PermissionsBitField { bitfield: 70643622086656n }
}
},
rawError: { message: 'Missing Access', code: 50001 },
code: 50001,
status: 403,
method: 'PUT',
url: 'https://discord.com/api/v10/channels/1203231726688538635/permissions/767335568647782441'
}
Node.js v18.16.0