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
Was this page helpful?