Fetching thread from Forum Channel Message

For some reason I'm having trouble fetching the thread from a forum channel's message. I'm listening for reactions, but reaction.message.hasThread always returns false, even after running reaction.message.fetch(). The message type is also always Default instead of ThreadStarterMessage. Any idea what might be going on?
5 Replies
d.js toolkit
d.js toolkit17mo ago
- 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
duck
duck17mo ago
is it specifically that you're trying to listen for reactions on a forum post's OP? if so, you can just compare <Message>.id with <Message>.channelId as a thread channel's id will be the same as the starter message and to elaborate, the message's channel would be the thread itself, not the forum
Sukadia
SukadiaOP17mo ago
i see; i think i confused myself with .thread, i assume that's if there's literally a thread attached to a message? and yea that's exactly what i need, thank you sukaJam
duck
duck17mo ago
i assume that's if there's literally a thread attached to a message?
yes
Sukadia
SukadiaOP17mo ago
ThumbsUp

Did you find this page helpful?