From 0ea4385cf08205413936c843b8af855cb76f9304 Mon Sep 17 00:00:00 2001 From: Louis Vallat Date: Tue, 3 Nov 2020 23:51:18 +0100 Subject: [PATCH] Removed formatting on usage printing on parsingError Signed-off-by: Louis Vallat --- src/main/java/xyz/vallat/louis/commands/Command.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/xyz/vallat/louis/commands/Command.java b/src/main/java/xyz/vallat/louis/commands/Command.java index 40cefb4..2b51675 100644 --- a/src/main/java/xyz/vallat/louis/commands/Command.java +++ b/src/main/java/xyz/vallat/louis/commands/Command.java @@ -48,6 +48,7 @@ public abstract class Command { public abstract Mono 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 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(); }