SirCode
SirCode
Explore posts from servers
DIAdiscord.js - Imagine an app
Created by SirCode on 3/11/2025 in #djs-questions
(solved) Strange permissions error inside discordjs that I cant catch and cant replicate?
Once in a while I will receive a strange error from discordjs that will crash my entire bot, and a try/catch block in the area of my code that seems to cause the issue doesnt ever catch the error. Instead it seems to be internal to discordJS and unavoidable.
/Users/mistersircode/Documents/GitHub/Arthur/node_modules/@discordjs/rest/dist/index.js:727
throw new DiscordAPIError(data, "code" in data ? data.code : data.error, status, method, url, requestData);
^

DiscordAPIError[50013]: Missing Permissions
at handleErrors (/Users/mistersircode/Documents/GitHub/Arthur/node_modules/@discordjs/rest/dist/index.js:727:13)
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
at async SequentialHandler.runRequest (/Users/mistersircode/Documents/GitHub/Arthur/node_modules/@discordjs/rest/dist/index.js:1128:23)
at async SequentialHandler.queueRequest (/Users/mistersircode/Documents/GitHub/Arthur/node_modules/@discordjs/rest/dist/index.js:959:14)
at async _REST.request (/Users/mistersircode/Documents/GitHub/Arthur/node_modules/@discordjs/rest/dist/index.js:1272:22)
at async TextChannel.send (/Users/mistersircode/Documents/GitHub/Arthur/node_modules/discord.js/src/structures/interfaces/TextBasedChannel.js:182:15) {
requestBody: {
files: [],
json: {
content: undefined,
tts: false,
nonce: undefined,
enforce_nonce: false,
embeds: [ { fields: [ [Object], [Object], [Object] ] } ],
components: undefined,
username: undefined,
avatar_url: undefined,
allowed_mentions: undefined,
flags: undefined,
message_reference: { message_id: '1348386197726167070', fail_if_not_exists: true },
attachments: undefined,
sticker_ids: undefined,
thread_name: undefined,
applied_tags: undefined,
poll: undefined
}
},
rawError: { message: 'Missing Permissions', code: 50013 },
code: 50013,
status: 403,
method: 'POST',
url: 'https://discord.com/api/v10/channels/1201565597453009018/messages'
}
/Users/mistersircode/Documents/GitHub/Arthur/node_modules/@discordjs/rest/dist/index.js:727
throw new DiscordAPIError(data, "code" in data ? data.code : data.error, status, method, url, requestData);
^

DiscordAPIError[50013]: Missing Permissions
at handleErrors (/Users/mistersircode/Documents/GitHub/Arthur/node_modules/@discordjs/rest/dist/index.js:727:13)
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
at async SequentialHandler.runRequest (/Users/mistersircode/Documents/GitHub/Arthur/node_modules/@discordjs/rest/dist/index.js:1128:23)
at async SequentialHandler.queueRequest (/Users/mistersircode/Documents/GitHub/Arthur/node_modules/@discordjs/rest/dist/index.js:959:14)
at async _REST.request (/Users/mistersircode/Documents/GitHub/Arthur/node_modules/@discordjs/rest/dist/index.js:1272:22)
at async TextChannel.send (/Users/mistersircode/Documents/GitHub/Arthur/node_modules/discord.js/src/structures/interfaces/TextBasedChannel.js:182:15) {
requestBody: {
files: [],
json: {
content: undefined,
tts: false,
nonce: undefined,
enforce_nonce: false,
embeds: [ { fields: [ [Object], [Object], [Object] ] } ],
components: undefined,
username: undefined,
avatar_url: undefined,
allowed_mentions: undefined,
flags: undefined,
message_reference: { message_id: '1348386197726167070', fail_if_not_exists: true },
attachments: undefined,
sticker_ids: undefined,
thread_name: undefined,
applied_tags: undefined,
poll: undefined
}
},
rawError: { message: 'Missing Permissions', code: 50013 },
code: 50013,
status: 403,
method: 'POST',
url: 'https://discord.com/api/v10/channels/1201565597453009018/messages'
}
61 replies
DHDistant Horizons
Created by SirCode on 1/2/2025 in #help-me
Anyone familiar with slow generation and stitching issues / squares on water? (9900X + 4080 Super)
No description
10 replies
SMSatisfactory Modding
Created by SirCode on 11/2/2024 in #help-using-mods
Mod compatibility issues?
Is there a way to check what mods are compatible or not? I setup a small list of mods and its crashing anytime I load or make a save
7 replies