Added CommandService logging

This commit is contained in:
RogueException
2017-03-18 12:14:14 -03:00
parent bc469cbb46
commit a2b12520b2
6 changed files with 76 additions and 11 deletions

View File

@@ -0,0 +1,15 @@
using System;
namespace Discord.Commands
{
public class CommandException : Exception
{
public CommandInfo Command { get; }
public ICommandContext Content { get; }
public CommandException(CommandInfo command, ICommandContext context, Exception ex)
: base($"Error occurred executing {command.GetLogText(context)}.", ex)
{
}
}
}