Separate out message processing into listeners

This commit is contained in:
Draycia committed 2020-07-02 00:48:55 -07:00
1 parent dae3af28f2
commit 457fdfd83e
10 files changed
+236 -84

No files matched your search

@@ -9,6 +9,7 @@ import org.javacord.api.event.message.MessageCreateEvent;
import java.util.List;
import java.util.Map;
import java.util.regex.Pattern;
public abstract class ChatChannel {
@@ -117,6 +118,8 @@ public abstract class ChatChannel {
return true;
}
public abstract List<Pattern> getItemLinkPatterns();
/**
* Parses the specified message, calls a {@link ChatFormatEvent}, and sends the message to everyone who can view this channel.
* @param user The player who is saying the message.