Skip to content

Commit

Permalink
Fix weird spacing between guild name and colon if no duration is present
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshuaSlui authored May 2, 2024
1 parent 59f83e6 commit 8ef4e7d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/discord/MemberWrapper.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}`
);
}

Expand Down

0 comments on commit 8ef4e7d

Please sign in to comment.