Added CommandService logging
This commit is contained in:
15
src/Discord.Net.Commands/CommandException.cs
Normal file
15
src/Discord.Net.Commands/CommandException.cs
Normal 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)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user