From 707903271981178b2cd1dc292feefea5112242b3 Mon Sep 17 00:00:00 2001 From: femshima <49227365+femshima@users.noreply.github.com> Date: Sat, 23 Jul 2022 07:19:51 +0900 Subject: [PATCH] allow 16~17 digit snowflake --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 182a88e..8f03903 100644 --- a/src/index.ts +++ b/src/index.ts @@ -9,7 +9,7 @@ const client = new Client({ }); const regurl = - /https:\/\/(ptb\.|canary\.)?discord(app)?\.com\/channels\/(?\d{18,19})\/(?\d{18,19})\/(?\d{18,19})/g; + /https:\/\/(ptb\.|canary\.)?discord(app)?\.com\/channels\/(?\d{16,19})\/(?\d{16,19})\/(?\d{16,19})/g; client.on('ready', (client) => { console.log(`Logged in as ${client.user.tag}!`);