Skip to content

Commit

Permalink
Update chat.js temporary mute message
Browse files Browse the repository at this point in the history
Temporary mute message now has links to the subscription and donate pages.
  • Loading branch information
KyrunaKJ authored Nov 21, 2024
1 parent 73687ba commit 509a9fb
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions assets/chat/js/chat.js
Original file line number Diff line number Diff line change
Expand Up @@ -1290,10 +1290,9 @@ class Chat {
case 'muted':
this.mutedtimer.setTimer(data.muteTimeLeft);
this.mutedtimer.startTimer();
let messageText = `You are temporarily muted! You can chat again ${this.mutedtimer.getReadableDuration()}. <a href="https://www.destiny.gg/subscribe">Subscribe</a>, or <a href="https://www.destiny.gg/donate">donate</a>, to remove the mute immediately.`

Check failure on line 1293 in assets/chat/js/chat.js

View workflow job for this annotation

GitHub Actions / lint

Unexpected lexical declaration in case block

Check failure on line 1293 in assets/chat/js/chat.js

View workflow job for this annotation

GitHub Actions / lint

'messageText' is never reassigned. Use 'const' instead

message = MessageBuilder.error(
`You are temporarily muted! You can chat again ${this.mutedtimer.getReadableDuration()}. Subscribe to remove the mute immediately.`,
);
message = new ChatMessage(messageText, null, MessageTypes.ERROR, true);
break;
case 'bannedphrase': {
message = MessageBuilder.error(
Expand Down

0 comments on commit 509a9fb

Please sign in to comment.