Ghetto
Ghetto
DIAdiscord.js - Imagine an app
Created by Ghetto on 8/17/2023 in #djs-questions
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
4 replies