mirror of
https://github.com/tiramisulabs/seyfert.git
synced 2025-07-05 14:36:09 +00:00
fix: use replaceAll instead
This commit is contained in:
parent
7f49385fb1
commit
a8380bf07d
@ -103,7 +103,7 @@ export class Shard {
|
|||||||
message.d,
|
message.d,
|
||||||
(_, value) => {
|
(_, value) => {
|
||||||
if (typeof value === 'string')
|
if (typeof value === 'string')
|
||||||
return value.replace(this.options.token, v => {
|
return value.replaceAll(this.options.token, v => {
|
||||||
const split = v.split('.');
|
const split = v.split('.');
|
||||||
return `${split[0]}.${'*'.repeat(split[1].length)}.${'*'.repeat(split[2].length)}`;
|
return `${split[0]}.${'*'.repeat(split[1].length)}.${'*'.repeat(split[2].length)}`;
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user