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 PatternCHANNEL_MENTIONA pattern which checks for mentioned channels (e.g.static PatternCUSTOM_EMOJIA pattern which checks for custom emojis (e.g.static PatternMESSAGE_LINKA pattern which checks for message links (e.g.static PatternROLE_MENTIONA pattern which checks for mentioned roles (e.g.static PatternUSER_MENTIONA pattern which checks for mentioned users (e.g.static PatternWEBHOOK_URLA pattern which checks for webhook urls (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>).
-
MESSAGE_LINK
public static final Pattern MESSAGE_LINK
A pattern which checks for message links (e.g.https://discord.com/channels/@me/1234/5678
-
WEBHOOK_URL
public static final Pattern WEBHOOK_URL
A pattern which checks for webhook urls (e.g.https://discord.com/api/webhooks/1234/abcd
-
-