diff --git a/deno/globals.ts b/deno/globals.ts index 01c9b8ce4..c7fc269ad 100644 --- a/deno/globals.ts +++ b/deno/globals.ts @@ -23,12 +23,14 @@ export const FormattingPatterns = { * Regular expression for matching a user mention, strictly with a nickname * * The `id` group property is present on the `exec` result of this expression + * @deprecated Passing `!` in user mentions is no longer necessary / supported, and future message contents won't have it */ UserWithNickname: /<@!(?\d{17,20})>/, /** * Regular expression for matching a user mention, with or without a nickname * * The `id` group property is present on the `exec` result of this expression + * @deprecated Passing `!` in user mentions is no longer necessary / supported, and future message contents won't have it */ UserWithOptionalNickname: /<@!?(?\d{17,20})>/, /** diff --git a/globals.ts b/globals.ts index 01c9b8ce4..c7fc269ad 100644 --- a/globals.ts +++ b/globals.ts @@ -23,12 +23,14 @@ export const FormattingPatterns = { * Regular expression for matching a user mention, strictly with a nickname * * The `id` group property is present on the `exec` result of this expression + * @deprecated Passing `!` in user mentions is no longer necessary / supported, and future message contents won't have it */ UserWithNickname: /<@!(?\d{17,20})>/, /** * Regular expression for matching a user mention, with or without a nickname * * The `id` group property is present on the `exec` result of this expression + * @deprecated Passing `!` in user mentions is no longer necessary / supported, and future message contents won't have it */ UserWithOptionalNickname: /<@!?(?\d{17,20})>/, /**