Removed formatting on usage printing on parsingError
Signed-off-by: Louis Vallat <louis@louis-vallat.xyz>
This commit is contained in:
parent
ebd37fa1b5
commit
0ea4385cf0
@ -48,6 +48,7 @@ public abstract class Command {
|
||||
|
||||
public abstract Mono<Void> execute(MessageCreateEvent event);
|
||||
|
||||
// TODO: RECODE THIS TO USE THE OPTIONS SYSTEM
|
||||
public String getUsage() {
|
||||
return "``" + this.usage + "``";
|
||||
}
|
||||
@ -91,7 +92,7 @@ public abstract class Command {
|
||||
protected Mono<Void> parsingError(MessageCreateEvent event) {
|
||||
return event.getMessage().getChannel()
|
||||
.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();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user