How to get first message in thread/channel?

Tried different methods:
(await thread.messages.fetch()).last() // Goes back maybe 50 messages
(await thread.messages.fetch({limit:1})).last() // Gets most recent message (last is actually older, tried with first() too)
await thread.getStarterMessage() // Gets message outside thread where it was created
(await thread.messages.fetch()).last() // Goes back maybe 50 messages
(await thread.messages.fetch({limit:1})).last() // Gets most recent message (last is actually older, tried with first() too)
await thread.getStarterMessage() // Gets message outside thread where it was created
2 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!
Ghetto
GhettoOP17mo ago
The goat 💪 Appreciate it brother
Want results from more Discord servers?
Add your server