From 285b87876c2f7ee30c8afe4bc1f814d562d6a267 Mon Sep 17 00:00:00 2001 From: Sebastien Date: Sat, 28 Apr 2018 23:26:20 +0200 Subject: [PATCH] Add unknow preference id --- src/main/java/net/Broken/Commands/Preference.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/main/java/net/Broken/Commands/Preference.java b/src/main/java/net/Broken/Commands/Preference.java index 5cfe449..d53345a 100644 --- a/src/main/java/net/Broken/Commands/Preference.java +++ b/src/main/java/net/Broken/Commands/Preference.java @@ -204,7 +204,11 @@ public class Preference implements Commande { Message sended = event.getTextChannel().sendMessage(EmbedMessageUtils.buildStandar(eb)).complete(); new MessageTimeOut(MainBot.messageTimeOut, sended, event.getMessage()).start(); break; - + default: + MessageEmbed msg2 = EmbedMessageUtils.buildStandar(EmbedMessageUtils.getError("\nUnknown id.\n\nUse `//preference` to see list")); + Message sended2 = event.getTextChannel().sendMessage(msg2).complete(); + new MessageTimeOut(MainBot.messageTimeOut, sended2, event.getMessage()).start(); + break; }