From eb56024ac5a9b3230a93d0eff00328f5357d0b56 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Erkin=20Alp=20G=C3=BCney?= Date: Sun, 18 Jun 2023 18:15:58 +0300 Subject: [PATCH] Discord unique usernames change MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Discord unique usernames return "0" as the discriminator Signed-off-by: Erkin Alp Güney --- src/matrixroomhandler.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/matrixroomhandler.ts b/src/matrixroomhandler.ts index 75ad0d01..75791d84 100644 --- a/src/matrixroomhandler.ts +++ b/src/matrixroomhandler.ts @@ -182,8 +182,8 @@ export class MatrixRoomHandler { regexp: "[A-Za-z0-9_\-]{2,100}", }, discriminator: { - placeholder: "1234", - regexp: "[0-9]{4}", + placeholder: "0", + regexp: "[0-9]{1,4}", }, guild_id: { placeholder: "",