aiko-chan-ai / discord.js-selfbot-v13

An unofficial discord.js fork for creating selfbots
https://discordjs-self-v13.netlify.app
GNU General Public License v3.0
751 stars 160 forks source link

MESSAGE_ID_NOT_FOUND on edited message #475

Closed TheDevYellowy closed 1 year ago

TheDevYellowy commented 1 year ago

Which package has the bugs?

The core library

Issue description

when trying to run the below code on an edited message it just throws the error, idk if I'm doing anything wrong or not

Error [MESSAGE_ID_NOT_FOUND]: Message ID not found
    at MessageManager._fetchId (E:\selfbots\DankMemer-slash\node_modules\discord.js-selfbot-v13\src\managers\MessageManager.js:255:18)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async module.exports (E:\selfbots\DankMemer-slash\src\util\command.js:66:25)
    at async E:\selfbots\DankMemer-slash\src\index.js:29:17 {
  [Symbol(code)]: 'MESSAGE_ID_NOT_FOUND'
} Promise {
  <rejected> Error [MESSAGE_ID_NOT_FOUND]: Message ID not found
      at MessageManager._fetchId (E:\selfbots\DankMemer-slash\node_modules\discord.js-selfbot-v13\src\managers\MessageManager.js:255:18)
      at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
      at async module.exports (E:\selfbots\DankMemer-slash\src\util\command.js:66:25)
      at async E:\selfbots\DankMemer-slash\src\index.js:29:17 {
    [Symbol(code)]: 'MESSAGE_ID_NOT_FOUND'
  }
}

Code sample

let platform = components[0].components[0].options[random(4)].value;
let type = components[1].components[0].options[random(5)].value;
let button = components[2].components[0].customId;

await message.selectMenu(components[0].components[0], [platform]);
await message.selectMenu(components[1].components[0], [type]);
const msg = await message.channel.messages.fetch(message.id, { force: true });
return await msg.clickButton(button);

Package version

2.9.20

Node.js version

18.9.1

Operating system

Win 11

Priority this issue should have

Medium (should be fixed soon)

Checklist

Additional Information

No response

aiko-chan-ai commented 1 year ago

maybe it was deleted/incorrect channel

TheDevYellowy commented 1 year ago

I don't think so because both the selectMenu functions work right above it

aiko-chan-ai commented 1 year ago

I don't think so because both the selectMenu functions work right above it

image with 2 tries, the first gives an error result and the second returns a result, I think this is an error from the api

I could not do anything :c

aiko-chan-ai commented 1 year ago

btw https://github.com/TheDevYellowy/discord-streaming It's so wonderful

TheDevYellowy commented 1 year ago

Almost, I still need to figure out how to correctly use wrtc because there is 0 documentation so it's not working

aiko-chan-ai commented 1 year ago

Almost, I still need to figure out how to correctly use wrtc because there is 0 documentation so it's not working

or you can update https://github.com/aiko-chan-ai/Discord-video-experiment =))

TheDevYellowy commented 1 year ago

I could but where is the fun in that when I can instead rip out my hair for hours trying to figure out how to connect to the rtc servers

aiko-chan-ai commented 1 year ago

I could but where is the fun in that when I can instead rip out my hair for hours trying to figure out how to connect to the rtc servers

:))