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
825 stars 170 forks source link

MESSAGE_ID_NOT_FOUND when a thread is created in the event "messageCreate" #1212

Closed lmaoguy123 closed 4 months ago

lmaoguy123 commented 4 months ago

Which package has the bugs?

The core library

Issue description

  1. Create a thread on discord (the author must be another account, not the bot account)
  2. Error MESSAGE_ID_NOT_FOUND. node:events:496 throw er; // Unhandled 'error' event ^

Error: MESSAGE_ID_NOT_FOUND at /mnt/nasdrive/shared/autoChatter/node_modules/discord.js-selfbot-v13/src/managers/MessageManager.js:259:73 at process.processTicksAndRejections (node:internal/process/task_queues:95:5) Emitted 'error' event on Client instance at: at emitUnhandledRejectionOrErr (node:events:401:10) at process.processTicksAndRejections (node:internal/process/task_queues:84:21)

Node.js v20.12.0

Code sample

import pkg from 'discord.js-selfbot-v13';
const { Client, Intents, MessageAttachment } = pkg;

const client = new Client();

client.once('ready', () => {
    console.log(`Logged`)
});

client.on('messageCreate', async (message) => {

console.log(message)

})

client.login(config.token);

Package version

latest

Node.js version

v20.12.0

Operating system

Linux

Priority this issue should have

High (immediate attention needed)

Checklist

Additional Information

Doesnt happen when the bot creates a thread

misonomikadev commented 4 months ago

I just try your code sample and don't see anything wrong, can you tell us more detail about your issue?

aiko-chan-ai commented 4 months ago

inactive