msg not sent to thread

client.on(Events.ThreadCreate, async (thread, newlyCreated) => {
const chl = "1113514934643470456";
if(thread.parentId === chl) {
if (thread.appliedTags.includes('1113573160965656576')) {
thread.send({ content: "yes"})
}
}
})
client.on(Events.ThreadCreate, async (thread, newlyCreated) => {
const chl = "1113514934643470456";
if(thread.parentId === chl) {
if (thread.appliedTags.includes('1113573160965656576')) {
thread.send({ content: "yes"})
}
}
})
the msg isnt being sent to the thread channel
1 Reply
d.js toolkit
d.js toolkit13mo ago
• What's your exact discord.js npm list discord.js and node node -v version? • Post the full error stack trace, not just the top part! • Show your code! • Explain what exactly your issue is. • Not a discord.js issue? Check out #useful-servers.