diff --git a/deno/globals.ts b/deno/globals.ts index c7fc269ad..a2154ace3 100644 --- a/deno/globals.ts +++ b/deno/globals.ts @@ -45,6 +45,13 @@ export const FormattingPatterns = { * The `id` group property is present on the `exec` result of this expression */ Role: /<@&(?\d{17,20})>/, + /** + * Regular expression for matching a application command mention + * + * The `fullName` (possibly including `name`, `subcommandOrGroup` and `subcommand`) and `id` group properties are present on the `exec` result of this expression + */ + SlashCommand: + /<\/(?(?[\w-]{1,32})(?: (?[\w-]{1,32}))?(?: (?[\w-]{1,32}))?):(?\d{17,20})>/, /** * Regular expression for matching a custom emoji, either static or animated * diff --git a/globals.ts b/globals.ts index c7fc269ad..a2154ace3 100644 --- a/globals.ts +++ b/globals.ts @@ -45,6 +45,13 @@ export const FormattingPatterns = { * The `id` group property is present on the `exec` result of this expression */ Role: /<@&(?\d{17,20})>/, + /** + * Regular expression for matching a application command mention + * + * The `fullName` (possibly including `name`, `subcommandOrGroup` and `subcommand`) and `id` group properties are present on the `exec` result of this expression + */ + SlashCommand: + /<\/(?(?[\w-]{1,32})(?: (?[\w-]{1,32}))?(?: (?[\w-]{1,32}))?):(?\d{17,20})>/, /** * Regular expression for matching a custom emoji, either static or animated *