From b4340e05e68f2efbf1524848d942e15c229e9d69 Mon Sep 17 00:00:00 2001 From: CPU Date: Wed, 27 Apr 2022 20:58:44 +0200 Subject: [PATCH] Added "logging" of the "log" command --- UPBot Code/Commands/Logs.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/UPBot Code/Commands/Logs.cs b/UPBot Code/Commands/Logs.cs index 2f5ab5a..58d1b7f 100644 --- a/UPBot Code/Commands/Logs.cs +++ b/UPBot Code/Commands/Logs.cs @@ -18,6 +18,7 @@ public class Logs : BaseCommandModule { [Description("Allows to see and download guild logs (only admins)")] public async Task LogsCommand(CommandContext ctx) { if (ctx.Guild == null) return; + Utils.LogUserCommand(ctx); try { if (!Setup.HasAdminRole(ctx.Guild.Id, ctx.Member.Roles, false)) return; @@ -32,6 +33,7 @@ public async Task LogsCommand(CommandContext ctx) { [Description("Allows to see and download guild logs (only admins)")] public async Task LogsCommand(CommandContext ctx, [Description("How many lines to show or 'save' to save the logs")]string what) { if (ctx.Guild == null) return; + Utils.LogUserCommand(ctx); try { if (!Setup.HasAdminRole(ctx.Guild.Id, ctx.Member.Roles, false)) return;