sercan
sercan
DIAdiscord.js - Imagine an app
Created by sercan on 6/2/2024 in #djs-questions
thread send message
but undefined error
12 replies
DIAdiscord.js - Imagine an app
Created by sercan on 6/2/2024 in #djs-questions
thread send message
yea
12 replies
DIAdiscord.js - Imagine an app
Created by sercan on 6/2/2024 in #djs-questions
thread send message
const thread = await client.channels.fetch(threadId);
if (thread) {
await thread.send(messageContent);
console.log('Message sent to thread!');
} else {
console.log('Thread not found!');
}
const thread = await client.channels.fetch(threadId);
if (thread) {
await thread.send(messageContent);
console.log('Message sent to thread!');
} else {
console.log('Thread not found!');
}
i think it works like this, but I couldn't run it, it shows undefined
12 replies