Skip to content

Commit 01488e2

Browse files
committed
Remove invalid argument when writing to stream
The second argument of `stream.Writable.write()` is the encoding of the chunk. Node 14 didn't seem to mind that it was set to `true`, which is invalid, but Node 18 does and throws an error as a result.
1 parent bf527d1 commit 01488e2

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

lib/commands/implementations/mute.js

-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ function mute(input, services) {
2222
parsedDuration,
2323
`Muting: ${userToPunish} for ${formatDuration(moment.duration(parsedDuration, 'seconds'))}`,
2424
),
25-
true,
2625
);
2726
});
2827
return new CommandOutput(null, null);

lib/commands/implementations/mutelinks.js

-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@ function mutelinks(defaultPunishmentDuration) {
6363
muteDuration,
6464
`${data.user} muted for ${formattedDuration} for posting a link while link muting is on.`,
6565
),
66-
true,
6766
);
6867
});
6968
const displayState = state === 'all' ? 'on for all links' : state;

0 commit comments

Comments
 (0)