fenya
fenya
DIAdiscord.js - Imagine an app
Created by fenya on 8/13/2024 in #djs-questions
Getting "Unknown message" sometimes...
Ok. As I said sometimes it works. I'll assume it's just a bug
4 replies
DIAdiscord.js - Imagine an app
Created by fenya on 8/13/2024 in #djs-questions
Getting "Unknown message" sometimes...
DiscordAPIError[10008]: Unknown Message
at handleErrors (D:\Project\node_modules\@discordjs\rest\dist\index.js:730:13)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async SequentialHandler.runRequest (D:\Project\node_modules\@discordjs\rest\dist\index.js:1133:23)
at async SequentialHandler.queueRequest (D:\Project\node_modules\@discordjs\rest\dist\index.js:963:14)
at async _REST.request (D:\Project\node_modules\@discordjs\rest\dist\index.js:1278:22)
at async GuildMessageManager.edit (D:\Project\node_modules\discord.js\src\managers\MessageManager.js:188:15)
at async reply (D:\Project\dist\utils\buildComponentProps.js:62:13)
at async MenuButtonsSelect.run (D:\Project\dist\commands\admin\menu\MenuButtonsSelect.js:144:30)
at async MenuButtonsSelect.execute (D:\Project\dist\structures\bot\SelectMenuComponent.js:16:16)
at async Object.run (D:\Project\dist\events\InteractionCreate.js:141:28) {
requestBody: {
files: [ [Object], [Object] ],
json: {
content: '',
embeds: [Array],
components: [Array],
flags: 64,
attachments: [Array],
...
}
},
rawError: { message: 'Unknown Message', code: 10008 },
code: 10008,
status: 404,
method: 'PATCH',
url: 'https://discord.com/api/v10/channels/1264166929413836882/messages/1273000808085983305'
}
DiscordAPIError[10008]: Unknown Message
at handleErrors (D:\Project\node_modules\@discordjs\rest\dist\index.js:730:13)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async SequentialHandler.runRequest (D:\Project\node_modules\@discordjs\rest\dist\index.js:1133:23)
at async SequentialHandler.queueRequest (D:\Project\node_modules\@discordjs\rest\dist\index.js:963:14)
at async _REST.request (D:\Project\node_modules\@discordjs\rest\dist\index.js:1278:22)
at async GuildMessageManager.edit (D:\Project\node_modules\discord.js\src\managers\MessageManager.js:188:15)
at async reply (D:\Project\dist\utils\buildComponentProps.js:62:13)
at async MenuButtonsSelect.run (D:\Project\dist\commands\admin\menu\MenuButtonsSelect.js:144:30)
at async MenuButtonsSelect.execute (D:\Project\dist\structures\bot\SelectMenuComponent.js:16:16)
at async Object.run (D:\Project\dist\events\InteractionCreate.js:141:28) {
requestBody: {
files: [ [Object], [Object] ],
json: {
content: '',
embeds: [Array],
components: [Array],
flags: 64,
attachments: [Array],
...
}
},
rawError: { message: 'Unknown Message', code: 10008 },
code: 10008,
status: 404,
method: 'PATCH',
url: 'https://discord.com/api/v10/channels/1264166929413836882/messages/1273000808085983305'
}
The question that bothers me is: why does it sometimes work and sometimes not?
4 replies
DIAdiscord.js - Imagine an app
Created by fenya on 1/4/2023 in #djs-questions
How is it possible that the Message's author is equivalent to null?
8 replies
DIAdiscord.js - Imagine an app
Created by fenya on 1/4/2023 in #djs-questions
How is it possible that the Message's author is equivalent to null?
Ok, thx. In this case we need doc's & Message type update
8 replies
DIAdiscord.js - Imagine an app
Created by fenya on 8/28/2022 in #djs-questions
Access error using a channel deletion method
Ok. I just solved this problem. Looking at djs code I noticed all requested perms. And I did not provide myself with "Connect"
get manageable() {
...
const bitfield = VoiceBasedChannelTypes.includes(this.type)
? PermissionFlagsBits.ManageChannels | PermissionFlagsBits.Connect
: PermissionFlagsBits.ViewChannel | PermissionFlagsBits.ManageChannels;
return permissions.has(bitfield, false);
}
get manageable() {
...
const bitfield = VoiceBasedChannelTypes.includes(this.type)
? PermissionFlagsBits.ManageChannels | PermissionFlagsBits.Connect
: PermissionFlagsBits.ViewChannel | PermissionFlagsBits.ManageChannels;
return permissions.has(bitfield, false);
}
3 replies
DIAdiscord.js - Imagine an app
Created by fenya on 8/27/2022 in #djs-questions
How can I check if I can overwrite channel permissions?
thx
10 replies
DIAdiscord.js - Imagine an app
Created by fenya on 8/27/2022 in #djs-questions
How can I check if I can overwrite channel permissions?
thx What about embeds? What kind of perms do bot needed to send embeds? AttachFiles or EmbedLinks?
10 replies