From 37cfd7e7bc34088d908b152b7d4e38e81a8591bd Mon Sep 17 00:00:00 2001 From: Andreas Fischer Date: Fri, 10 Apr 2020 00:18:06 +0200 Subject: [PATCH] command: Fix incorrect method names in example in README.md --- command/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/command/README.md b/command/README.md index 44fcab05..addac512 100644 --- a/command/README.md +++ b/command/README.md @@ -14,7 +14,7 @@ public class MyBot // Set your bot's prefix builder.setPrefix("!"); - builder.setAlternatePrefix("+"); + builder.setAlternativePrefix("+"); // Add commands builder.addCommand(new CoolCommand()); @@ -26,7 +26,7 @@ public class MyBot new JDABuilder(AccountType.BOT) // ... - .addEventListener(client) // Add the new CommandClient as a listener + .addEventListeners(client) // Add the new CommandClient as a listener // ... .buildAsync(); }