From 8ef4e7d5cdb184b6537e9616cee03fa981269984 Mon Sep 17 00:00:00 2001 From: Joshua Slui Date: Thu, 2 May 2024 15:33:37 +0200 Subject: [PATCH] Fix weird spacing between guild name and colon if no duration is present --- src/discord/MemberWrapper.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/discord/MemberWrapper.js b/src/discord/MemberWrapper.js index 19eb7ba07..fcb9d4394 100644 --- a/src/discord/MemberWrapper.js +++ b/src/discord/MemberWrapper.js @@ -539,7 +539,7 @@ export default class MemberWrapper { */ async dmPunishedUser(verb, reason, duration, preposition = 'from') { return this.guild.sendDM(this.user, - `You have been ${verb} ${preposition} ${bold(this.guild.guild.name)} ${duration ? `for ${formatTime(duration)}` : ''}: ${reason}` + `You have been ${verb} ${preposition} ${bold(this.guild.guild.name)}${duration ? ` for ${formatTime(duration)}` : ''}: ${reason}` ); }