예제 #1
0
 private async static Task InvalidOverloadHandler(InvalidOverloadException ex, DiscordChannel logChannel)
 {
     var msg = $"Command {ex.Method.Name} failed. Use /help {ex.Method.Name} to get more info on this command";
     await logChannel.SendLogMessageAsync("Invalid Overload", msg, LogLevel.Warning);
 }
예제 #2
0
 private async static Task DuplicateCommandHandler(DuplicateCommandException ex, DiscordChannel logChannel)
 {
     await logChannel.SendLogMessageAsync("Duplicate Command", ex.Message, LogLevel.Warning);
 }
예제 #3
0
 private async static Task UnhandledCommandExceptionHandler(CommandErrorEventArgs e, DiscordChannel logChannel)
 {
     await logChannel.SendLogMessageAsync("Unknown Command Error", e.Exception.Message, LogLevel.Error);
 }