Class DiscordRegexPattern



  • public class DiscordRegexPattern
    extends Object
    This class contains some useful precompiled regex patterns.
    • 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>).