Minor changes.

keep-around/d31701866686f66088b78de2e29736ae36e55a68
Pingex aka Raphaël 9 years ago
parent eb8ec72406
commit 82c081cd3c

@ -62,7 +62,7 @@ public class CommandHandler
if(!targetCommand.isPresent()) if(!targetCommand.isPresent())
{ {
LOGGER.debug("No command with that name was found."); LOGGER.debug("No command with that name was found.");
DiscordInteractionsUtil.sendMessage(event.getMessage().getChannel(), "Command not found. Use `"+ Configuration.COMMAND_PREFIX +"list` to get a list of all available commands."); DiscordInteractionsUtil.sendMessage(event.getMessage().getChannel(), "Command not found. Use `"+ Configuration.COMMAND_PREFIX + "internal:list` to get a list of all available commands.");
return; return;
} }
@ -76,6 +76,7 @@ public class CommandHandler
catch(Throwable throwable) catch(Throwable throwable)
{ {
LOGGER.error("Error while executing command " + command + ".", throwable); LOGGER.error("Error while executing command " + command + ".", throwable);
DiscordInteractionsUtil.sendMessage(event.getMessage().getChannel(), "Error while executing the command.");
} }
}); });
} }