import twemojiRegex from 'twemoji-parser/dist/lib/regex' ; raw remark export const ChannelMentionRegex = /^<#(?<id>\d{17,19})>$/ ; raw remark remark export const ChannelMessageRegex = /^(?<channelId>\d{17,19})-(?<messageId>\d{17,19})$/ ; raw remark remark remark remark export const DiscordHostnameRegex = /(?<subdomain>\w+)\.?(?<hostname>dis(?:cord)?(?:app|merch|status)?)\.(?<tld>com|g(?:d|g|ift)|(?:de(?:sign|v))|media|new|store|net)/i ; raw remark export const DiscordInviteLinkRegex = /^(?:https?:\/\/)?(?:www\.)?(?:discord\.gg\/|discord(?:app)?\.com\/invite\/)?(?<code>[\w\d-]{2,})$/i ; raw remark remark remark export const EmojiRegex = /^(?:<(?<animated>a)?:(?<name>\w{2,32}):)?(?<id>\d{17,21})>?$/ ; /**
 * Regex that matches any animated or non-animated custom Discord emoji.
 * Unlike  EmojiRegex It can be a substring of a larger string.
 *  raw export const FormattedCustomEmoji = /<a?:\w{2,32}:\d{17,18}>/ ; /**
 * Regex that can capture any animated or non-animated custom Discord emoji.
 * Similar to  FormattedCustomEmoji and unlike  EmojiRegex can also be a substring of a larger string.
 *  raw remark remark remark export const FormattedCustomEmojiWithGroups = /(?<animated>a?):(?<name>[^:]+):(?<id>\d{17,19})/ ; raw remark for WebSocket URLs see  WebsocketGenericUrlRegex export const HttpUrlRegex = /^https?:\/\// ; raw remark remark remark export const MessageLinkRegex = /^(?:https:\/\/)?(?:ptb\.|canary\.)?discord(?:app)?\.com\/channels\/(?<guildId>(?:\d{17,19}|@me))\/(?<channelId>\d{17,19})\/(?<messageId>\d{17,19})$/ ; /**
 * Regex that matches any animated or non-animated custom Discord emoji *without the wrapping `<...>` symbols.
 * This means that a string that matches this regex can directly be send inside a Discord message.
 * Other than this difference it is similar to  FormattedCustomEmoji .
 *  raw export const ParsedCustomEmoji = /a?:\w{2,32}:\d{17,18}/ ; /**
 * Regex that matches any animated or non-animated custom Discord emoji *without the wrapping `<...>` symbols.
 * This means that a string that matches this regex can directly be send inside a Discord message.
 * Other than this difference it is similar to  FormattedCustomEmojiWithGroups .
 *  raw remark remark remark export const ParsedCustomEmojiWithGroups = /(?<animated>a?):(?<name>[^:]+):(?<id>\d{17,19})/ ; raw remark export const RoleMentionRegex = /^<@&(?<id>\d{17,19})>$/ ; raw remark export const SnowflakeRegex = /^(?<id>\d{17,19})$/ ; raw export const TwemojiRegex = twemojiRegex ; raw remark export const UserOrMemberMentionRegex = /^<@!?(?<id>\d{17,19})>$/ ; raw remark for regular HTTP URLs see  HttpUrlRegex export const WebSocketUrlRegex = /^wss?:\/\// ; raw remark remark remark remark for regular HTTP URLs see  HttpUrlRegex export const WebhookRegex = /(?<url>^https:\/\/(?:(?:canary|ptb).)?discordapp.com\/api\/webhooks\/(?<id>\d+)\/(?<token>[\w-]+)\/?$)/ ;