Forcibly getting messages from REST
Hello,
I'm running a bot with the default entity supplying strategy (
cacheWithRestFallback
), but I want to fetch all messages from a channel from REST, to make sure I get everything and not just the ones sent in the bot's current lifetime.
Here's what I'm thinking of doing:
Is there a better or more recommended way to do this?
Thanks!7 Replies
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
in this case, I don't want to cache the results
just want to get the messages and be sure I'm getting the whole deal
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
kord.with(EntitySupplyStrategy.rest).getMessagesAfter(...)
?Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
is that preferable though?
you can do this: