Use a webhook in a forum channel

We can create webhooks in forum channels but can we send messages with the webhook in a specific forum post ?
6 Replies
d.js toolkit
d.js toolkit2y 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.
Melio.
Melio.OP2y ago
bidenW
d.js docs
d.js docs2y ago
method Webhook#send() Sends a message with this webhook.
Melio.
Melio.OP2y ago
Yes but that's the point the send method doesn't work in forum channels oh I didn't see that So the threadId option will work for a forum post ? Alright, thanks ! I'll try When we use Webhook as a POST request, what is the name of the option in the data field ? thread_id isn't working but I use this if it can help :
return await axios({
method: 'post',
url: `${baseURL}/${this.id}/${this.token}`,
data: {
username: name,
avatar_url: avatar,
thread_id: threadId, //not working
content: message,
embeds: embed
}
})
return await axios({
method: 'post',
url: `${baseURL}/${this.id}/${this.token}`,
data: {
username: name,
avatar_url: avatar,
thread_id: threadId, //not working
content: message,
embeds: embed
}
})
Melio.
Melio.OP2y ago
There is nothing about thread id
Melio.
Melio.OP2y ago
True My bad, thanks
Want results from more Discord servers?
Add your server