Package org.javacord.api.util
Class DiscordRegexPattern
- java.lang.Object
-
- org.javacord.api.util.DiscordRegexPattern
-
public class DiscordRegexPattern extends Object
This class contains some useful precompiled regex patterns.
-
-
Field Summary
Fields Modifier and Type Field Description static Pattern
CHANNEL_MENTION
A pattern which checks for mentioned channels (e.g.static Pattern
CUSTOM_EMOJI
A pattern which checks for custom emojis (e.g.static Pattern
ROLE_MENTION
A pattern which checks for mentioned roles (e.g.static Pattern
USER_MENTION
A pattern which checks for mentioned users (e.g.
-
-
-
Field Detail
-
USER_MENTION
public static final Pattern USER_MENTION
A pattern which checks for mentioned users (e.g.<@1234567890>
).
-
ROLE_MENTION
public static final Pattern ROLE_MENTION
A pattern which checks for mentioned roles (e.g.<@&1234567890>
).
-
CHANNEL_MENTION
public static final Pattern CHANNEL_MENTION
A pattern which checks for mentioned channels (e.g.<#1234567890>
).
-
CUSTOM_EMOJI
public static final Pattern CUSTOM_EMOJI
A pattern which checks for custom emojis (e.g.<:my_emoji:1234567890>
).
-
-