Closed ryans1230 closed 7 years ago
If the message is deleted, it's most likely that Discord have removed the message and will not return it upon a REST request, therefore leading to a retrieval failure.
You can't get a deleted message.
How can I can get a deleted message then? I see other bots that do it
You have to keep track of messages and access your own cache. Discord does not provide this.
If you need any more help please consider to join our discord server. JDA does not provide a message cache to keep a lower memory footprint thus it is unable to provide deleted message. If you want to keep track of messages that are deleted you will have to make your own cache or database which stores messages for your own use.
So I'm trying to get a deleted message's content, and every time I am getting an answer from the
RestAction<Message>
, it is a failure, even though I know the message exists in the specified channel.