[AB-xx] improving scheduling interface

moving renaming module to int
removing duplicated starboard feature validator
sonar fixes
This commit is contained in:
Sheldan
2021-03-08 01:27:50 +01:00
parent 9c6333281b
commit 66061b7719
424 changed files with 95 additions and 154 deletions

View File

@@ -64,7 +64,7 @@ public class MessageCacheBean implements MessageCache {
@Override
@Cacheable(key = "#messageId.toString()")
public CompletableFuture<CachedMessage> getMessageFromCache(Long guildId, Long textChannelId, Long messageId) {
log.trace("Retrieving message with parameters");
log.trace("Retrieving message {} with parameters.", messageId);
return concreteSelf.loadMessage(guildId, textChannelId, messageId);
}
@@ -85,7 +85,10 @@ public class MessageCacheBean implements MessageCache {
future.completeExceptionally(throwable);
return null;
})
);
).exceptionally(throwable -> {
log.error("Failed to load message for caching.", throwable);
return null;
});
} else {
log.error("Not able to load message {} in channel {} in guild {}. Text channel not found.", messageId, textChannelId, guildId);
future.completeExceptionally(new ChannelNotInGuildException(textChannelId));