Fixed CommandException

This commit is contained in:
RogueException
2017-03-25 11:19:31 -03:00
parent df129dd766
commit bbd45a6f4b

View File

@@ -5,11 +5,13 @@ namespace Discord.Commands
public class CommandException : Exception
{
public CommandInfo Command { get; }
public ICommandContext Content { get; }
public ICommandContext Context { get; }
public CommandException(CommandInfo command, ICommandContext context, Exception ex)
: base($"Error occurred executing {command.GetLogText(context)}.", ex)
{
Command = command;
Context = context;
}
}
}