diff --git a/Huppy/Huppy.App/Middlewares/CommandLogMiddleware.cs b/Huppy/Huppy.App/Middlewares/CommandLogMiddleware.cs index b29f763..2917d5a 100644 --- a/Huppy/Huppy.App/Middlewares/CommandLogMiddleware.cs +++ b/Huppy/Huppy.App/Middlewares/CommandLogMiddleware.cs @@ -30,7 +30,7 @@ public async Task AfterAsync(ExtendedShardedInteractionContext context, ICommand CommandLog log = new() { - CommandName = commandInfo.Name, + CommandName = commandInfo.ToString(), Date = DateTime.UtcNow, IsSuccess = result.IsSuccess, UserId = context.User.Id, @@ -45,7 +45,7 @@ public async Task AfterAsync(ExtendedShardedInteractionContext context, ICommand if (result.IsSuccess) { - _logger.LogInformation("Command [{CommandName}] executed for [{Username}] in [{GuildName}] [{time} ms]", commandInfo.Name, context.User.Username, context.Guild.Name, string.Format("{0:n0}", watch.ElapsedMilliseconds)); + _logger.LogInformation("Command [{CommandName}] executed for [{Username}] in [{GuildName}] [{time} ms]", commandInfo.ToString(), context.User.Username, context.Guild.Name, string.Format("{0:n0}", watch.ElapsedMilliseconds)); } else {