How do i send messages in a Forum Channel
assuming i have the channel stored in the
channel
variable, how would i send a message to it? Any clue? I've scoured https://discord.js.org/docs/packages/discord.js/main/ForumChannel:Classdiscord.js | ForumChannel
Represents a forum channel.
8 Replies
- What's your exact discord.js
npm list discord.js
and node node -v
version?
- Not a discord.js issue? Check out #other-js-ts.
- Consider reading #how-to-get-help to improve your question!
- Explain what exactly your issue is.
- Post the full error stack trace, not just the top part!
- Show your code!
- Issue solved? Press the button!
- ✅
Marked as resolved by OP- 14.14.1
The same way you would normally send a message.
Property 'send' does not exist on type 'ForumChannel'.ts(2339)
a ForumChannel has threads (a collection of ThreadChannels)
you can send messages to individual threads
or you can create a new thread
oh right
my bad
and i get the thread id
and use it to fetch the channel using <channel>.threads.fetch
sounds about right
i'd rename
msg
to newThread
, and you don't need to fetch it again
create will return the newly created ThreadChannelthank you
Here's my working code for anyone in the future