Old message content
I'm trying to use a message update event to get the content of an old message, from a dm with the bot, however, every time without fail, it's null. Is there a way to guarantee i get the old content, or a more stable way than going
event.old.content
?![No description](https://cdn.answeroverflow.com/1015951958605045780/unknown.png)
23 Replies
![No description](https://cdn.answeroverflow.com/1015952062955135106/unknown.png)
I think you need to cache messages
hm
is ther an easy way to do that?
never done it before 😅
*enable caching messages, not cache them yourself
a
again how :>
but apart from caching, there is no way to get old message content
alr
thanks
I think the wiki shows how
the kord wiki or kordex?
kord, idk about kordex, sorry
alr
the wiki on gh or the
kord.dev
wiki?kord.dev are dokka docs, I mean the gh wiki
cool, found it
thanks :D
Worked like a charm
thank you
KordEx enables it by default
But it's a small cache by default, only around 10k messages
uh thats strange then
because it works now that I've done the one on github
kordex must not be then
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
i have it enabled
prior to this
but not in the bot builder
so lets see if this still works
ah yep that fixed it too
wait no it didn't
i didn't restart between changes 💀
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
no
using your builder thing does work perfectly though
so I'll do that
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
this works
so I'm gonna use that
since message content doesn't change anything
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
That's not documented
At least that I could find