mirror of
https://github.com/Sheldan/abstracto.git
synced 2026-03-21 20:59:05 +00:00
added message caching
added message edited log (simple)
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
package dev.sheldan.abstracto.core;
|
||||
|
||||
import net.dv8tion.jda.api.entities.Message;
|
||||
|
||||
public interface MessageTextUpdatedListener {
|
||||
void execute(Message messageBefore, Message messageAfter);
|
||||
}
|
||||
@@ -37,6 +37,7 @@ public class PostTarget {
|
||||
public static String WARN_LOG = "warnlog";
|
||||
public static String KICK_LOG = "kicklog";
|
||||
public static String BAN_LOG = "banlog";
|
||||
public static String EDIT_LOG = "editLog";
|
||||
|
||||
public static List<String> AVAILABLE_POST_TARGETS = Arrays.asList(JOIN_LOG, LEAVE_LOG, WARN_LOG, KICK_LOG, BAN_LOG);
|
||||
public static List<String> AVAILABLE_POST_TARGETS = Arrays.asList(JOIN_LOG, LEAVE_LOG, WARN_LOG, KICK_LOG, BAN_LOG, EDIT_LOG);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
package dev.sheldan.abstracto.core.service;
|
||||
|
||||
import net.dv8tion.jda.api.entities.Message;
|
||||
|
||||
public interface MessageCache {
|
||||
Message putMessageInCache(Message message);
|
||||
Message getMessageFromCache(Message message);
|
||||
}
|
||||
Reference in New Issue
Block a user