Fixed CommandException
This commit is contained in:
@@ -5,11 +5,13 @@ namespace Discord.Commands
|
|||||||
public class CommandException : Exception
|
public class CommandException : Exception
|
||||||
{
|
{
|
||||||
public CommandInfo Command { get; }
|
public CommandInfo Command { get; }
|
||||||
public ICommandContext Content { get; }
|
public ICommandContext Context { get; }
|
||||||
|
|
||||||
public CommandException(CommandInfo command, ICommandContext context, Exception ex)
|
public CommandException(CommandInfo command, ICommandContext context, Exception ex)
|
||||||
: base($"Error occurred executing {command.GetLogText(context)}.", ex)
|
: base($"Error occurred executing {command.GetLogText(context)}.", ex)
|
||||||
{
|
{
|
||||||
|
Command = command;
|
||||||
|
Context = context;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user