Skip to content

A way to get all messages in thread by id? #9370

Closed Answered by BenjammingKirby
lokize asked this question in Q&A
Discussion options

You must be logged in to vote

not really through a single fetch (all the time)
your channel.messages.fetch({limit:100}) is going to fetch the last 100 messages (as the max limit is 100), so to fetch more, you need to fetch more and do some pagination (using the before and after parameter)
if there is a huge number of messages, it can turn into api spam real quick

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@lokize
Comment options

@BenjammingKirby
Comment options

@lokize
Comment options

@Jiralite
Comment options

@lokize
Comment options

Answer selected by Jiralite
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants