From 279bf67aa8be7f03edda7fcc80aa2c5ed31b31ef Mon Sep 17 00:00:00 2001 From: Vitor Date: Mon, 4 Apr 2022 16:21:39 +0100 Subject: [PATCH] docs(FormattingPatterns): mark `UserWithNickname` and `UserWithOptionalNickname` as deprecated (#392) --- deno/globals.ts | 2 ++ globals.ts | 2 ++ 2 files changed, 4 insertions(+) diff --git a/deno/globals.ts b/deno/globals.ts index 01c9b8ce..c7fc269a 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 01c9b8ce..c7fc269a 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})>/, /**