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);
|
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();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user