/// <summary>Console logging event for unsuccessfully executed command without a timespan.</summary> public void ConsoleCommandLog(SocketCommandContext context, CommandError error, string errorMsg) { if (error.Equals(CommandError.UnknownCommand)) { Console.ForegroundColor = ConsoleColor.Magenta; string cmd = context.Message.Content.Split(' ').First(); Console.WriteLine($"\nUSER COMMAND ERROR:" + $"\nERROR MESSAGE: [\"{errorMsg}\"]" + $"\nUser: [{context.User.Username}#{context.User.Discriminator}] Command: [{cmd}]" + $"\nGuild: [{context.Guild.Name} | {context.Guild.Id}] " + $"Channel: [#{context.Channel.Name} | {context.Channel.Id}]" + $"\nTime: [{DateTime.Now}]" + $"\nMessage: [{context.Message.Content}]"); } }