Browse Source

Fixed CommandException

tags/1.0-rc
RogueException 8 years ago
parent
commit
bbd45a6f4b
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      src/Discord.Net.Commands/CommandException.cs

+ 3
- 1
src/Discord.Net.Commands/CommandException.cs 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;
}
}
}

Loading…
Cancel
Save