fix: use replaceAll instead

This commit is contained in:
MARCROCK22 2024-04-24 19:32:28 -04:00
parent 7f49385fb1
commit a8380bf07d

View File

@ -103,7 +103,7 @@ export class Shard {
message.d,
(_, value) => {
if (typeof value === 'string')
return value.replace(this.options.token, v => {
return value.replaceAll(this.options.token, v => {
const split = v.split('.');
return `${split[0]}.${'*'.repeat(split[1].length)}.${'*'.repeat(split[2].length)}`;
});