Skip to content

Commit

Permalink
allow 16~17 digit snowflake
Browse files Browse the repository at this point in the history
  • Loading branch information
phenylshima committed Jul 22, 2022
1 parent 7d8cd78 commit 7079032
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const client = new Client({
});

const regurl =
/https:\/\/(ptb\.|canary\.)?discord(app)?\.com\/channels\/(?<guild>\d{18,19})\/(?<channel>\d{18,19})\/(?<message>\d{18,19})/g;
/https:\/\/(ptb\.|canary\.)?discord(app)?\.com\/channels\/(?<guild>\d{16,19})\/(?<channel>\d{16,19})\/(?<message>\d{16,19})/g;

client.on('ready', (client) => {
console.log(`Logged in as ${client.user.tag}!`);
Expand Down

0 comments on commit 7079032

Please sign in to comment.