mirror of
https://github.com/Sheldan/abstracto.git
synced 2026-03-27 14:23:56 +00:00
fixed command and feature mapping
added a bunch of java doc to moderation interface added check in case the text channel on the server was deleted while the mod mail thread was still open This now returns an error to the user side and prompts to message the bot again in order to create a new mod mail thread
This commit is contained in:
@@ -89,7 +89,13 @@ public class MessageCacheBean implements MessageCache {
|
||||
TextChannel textChannel = textChannelByIdOptional.get();
|
||||
textChannel.retrieveMessageById(messageId).queue(message ->
|
||||
{
|
||||
buildCachedMessageFromMessage(message).thenAccept(future::complete);
|
||||
buildCachedMessageFromMessage(message)
|
||||
.thenAccept(future::complete)
|
||||
.exceptionally(throwable -> {
|
||||
log.error("Failed to load message for caching.", throwable);
|
||||
future.completeExceptionally(throwable);
|
||||
return null;
|
||||
});
|
||||
}
|
||||
);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user