mirror of
https://github.com/Sheldan/abstracto.git
synced 2026-04-05 09:00:24 +00:00
[AB-226] adding caching of referenced messages (only one element on the chain)
This commit is contained in:
@@ -23,6 +23,7 @@ public class CachedMessage {
|
||||
private List<CachedAttachment> attachments;
|
||||
private List<CachedReactions> reactions;
|
||||
private List<CachedEmote> emotes;
|
||||
private CachedMessage referencedMessage;
|
||||
|
||||
public String getMessageUrl() {
|
||||
return MessageUtils.buildMessageUrl(this.serverId ,this.channelId, this.messageId);
|
||||
|
||||
@@ -13,5 +13,6 @@ public interface CacheEntityService {
|
||||
CachedThumbnail buildCachedThumbnail(MessageEmbed.Thumbnail thumbnail);
|
||||
CachedImageInfo buildCachedImage(MessageEmbed.ImageInfo image);
|
||||
CompletableFuture<CachedReactions> getCachedReactionFromReaction(MessageReaction reaction);
|
||||
CompletableFuture<CachedMessage> buildCachedMessageFromMessage(Message message, boolean loadReferenced);
|
||||
CompletableFuture<CachedMessage> buildCachedMessageFromMessage(Message message);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user