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); }
private async static Task DuplicateCommandHandler(DuplicateCommandException ex, DiscordChannel logChannel) { await logChannel.SendLogMessageAsync("Duplicate Command", ex.Message, LogLevel.Warning); }
private async static Task UnhandledCommandExceptionHandler(CommandErrorEventArgs e, DiscordChannel logChannel) { await logChannel.SendLogMessageAsync("Unknown Command Error", e.Exception.Message, LogLevel.Error); }