Skip to content

Commit

Permalink
Adds warn size to !warn command response
Browse files Browse the repository at this point in the history
  • Loading branch information
Blackcatmaxy committed Dec 8, 2021
1 parent 05bde2b commit dbea7cb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/BotCatMaxy/Components/Moderation/ModerationCommands.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ public async Task<RuntimeResult> ExecuteWarnAsync(UserRef userRef, float size, s

if (result.success)
{
return CommandResult.FromSuccess($"{userRef.Mention()} has been given their {result.warnsAmount.Suffix()} warning because of `{reason}`.");
string modifier = (size != 1) ? $"(size of `{size}x`) " : "";
return CommandResult.FromSuccess($"{userRef.Mention()} has been given their `{result.warnsAmount.Suffix()}` warning {modifier}because of `{reason}`.");
}

if (logMessage != null)
Expand Down

0 comments on commit dbea7cb

Please sign in to comment.