From 3385b09c0fd0241a40c5de66f055a2a2864dc0e5 Mon Sep 17 00:00:00 2001 From: Erisa A Date: Fri, 13 Aug 2021 20:07:43 +0100 Subject: [PATCH] Log usage of /transfer_warnings --- Modules/SlashCommands.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Modules/SlashCommands.cs b/Modules/SlashCommands.cs index e597cf0c..62bfa143 100644 --- a/Modules/SlashCommands.cs +++ b/Modules/SlashCommands.cs @@ -223,7 +223,7 @@ public async Task WarningsSlashCommand(InteractionContext ctx, public async Task TransferWarningsSlashCommand(InteractionContext ctx, [Option("source_user", "The user currently holding the warnings.")] DiscordUser sourceUser, [Option("target_user", "The user recieving the warnings.")] DiscordUser targetUser, - [Option("force_override", "DESTRUCTIVE OPERATION: Whether to OVERRIDE and REMOVE the target users existing warnings.")] bool forceOverride = false + [Option("force_override", "DESTRUCTIVE OPERATION: Whether to OVERRIDE and DELETE the target users existing warnings.")] bool forceOverride = false ) { var sourceWarnings = await Program.db.HashGetAllAsync(sourceUser.Id.ToString()); @@ -250,6 +250,7 @@ await ctx.RespondAsync($"{Program.cfgjson.Emoji.Warning} **CAUTION**: The target await Program.db.KeyRenameAsync(sourceUser.Id.ToString(), targetUser.Id.ToString()); } await ctx.RespondAsync($"{Program.cfgjson.Emoji.Success} Successully transferred warnings from {sourceUser.Mention} to {targetUser.Mention}!"); + await Program.logChannel.SendMessageAsync($"{Program.cfgjson.Emoji.Information} Warnings from {sourceUser.Mention} were transferred to {targetUser.Mention} by `{ctx.User.Username}#{ctx.User.Discriminator}`", Warnings.GenerateWarningsEmbed(targetUser)); } [ContextMenu(ApplicationCommandType.UserContextMenu, "Show Warnings")]