Skip to content

Commit

Permalink
Added "logging" of the "log" command
Browse files Browse the repository at this point in the history
  • Loading branch information
CPULL committed Apr 27, 2022
1 parent 280f463 commit b4340e0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions UPBot Code/Commands/Logs.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -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;

Expand Down

0 comments on commit b4340e0

Please sign in to comment.