Removed formatting on usage printing on parsingError

Signed-off-by: Louis Vallat <louis@louis-vallat.xyz>
This commit is contained in:
Louis Vallat 2020-11-03 23:51:18 +01:00
parent ebd37fa1b5
commit 0ea4385cf0

View File

@ -48,6 +48,7 @@ public abstract class Command {
public abstract Mono<Void> execute(MessageCreateEvent event); public abstract Mono<Void> execute(MessageCreateEvent event);
// TODO: RECODE THIS TO USE THE OPTIONS SYSTEM
public String getUsage() { public String getUsage() {
return "``" + this.usage + "``"; return "``" + this.usage + "``";
} }
@ -91,7 +92,7 @@ public abstract class Command {
protected Mono<Void> parsingError(MessageCreateEvent event) { protected Mono<Void> parsingError(MessageCreateEvent event) {
return event.getMessage().getChannel() return event.getMessage().getChannel()
.flatMap(channel -> .flatMap(channel ->
channel.createMessage("An error occurred while parsing your command. Usage: ``" + getUsage() + "``.")) channel.createMessage("An error occurred while parsing your command. Usage: " + getUsage() + "."))
.then(); .then();
} }