mirror of
https://github.com/tiramisulabs/seyfert.git
synced 2025-07-02 04:56:07 +00:00
fix: use replaceAll instead
This commit is contained in:
parent
7f49385fb1
commit
a8380bf07d
@ -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)}`;
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user