From dbea7cb3e0384a1078cf5d79825474de343db284 Mon Sep 17 00:00:00 2001 From: Daniel Bereza Date: Tue, 7 Dec 2021 18:31:42 -0800 Subject: [PATCH] Adds warn size to !warn command response --- src/BotCatMaxy/Components/Moderation/ModerationCommands.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/BotCatMaxy/Components/Moderation/ModerationCommands.cs b/src/BotCatMaxy/Components/Moderation/ModerationCommands.cs index 63be82b..21331fc 100644 --- a/src/BotCatMaxy/Components/Moderation/ModerationCommands.cs +++ b/src/BotCatMaxy/Components/Moderation/ModerationCommands.cs @@ -29,7 +29,8 @@ public async Task 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)