Hey there! Before you report a bug or suggest a new feature,
please make sure to follow these steps first!
This is not the place to learn Java. Please refer to StackOverflow
for your general programming questions.
MessageDeleteEvent and MessageUpdateEvent should definitely have methods to get the old deleted/edited message, as of now, there is nothing (as far as I know) that does that.
JDA cannot provide information that discord doesn't provide.
You will have to cache messages yourself if you need to have such features.
Discord itself doesn't provide that via event and we don't cache it because it would just unnecessarily fill up ram no matter if used or not, while our other caches (users, guilds, channels) are mandatory for JDA to work.
Most helpful comment
You will have to cache messages yourself if you need to have such features.
Discord itself doesn't provide that via event and we don't cache it because it would just unnecessarily fill up ram no matter if used or not, while our other caches (users, guilds, channels) are mandatory for JDA to work.