mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-01 22:15:08 +00:00
Separate out message processing into listeners
This commit is contained in:
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.
|
||||
|
||||
Reference in new issue
Block a user