From 80070149e59b7ac8aa56c5e36009b933de7c4226 Mon Sep 17 00:00:00 2001 From: wolfieboy09 <105564186+wolfieboy09@users.noreply.github.com> Date: Thu, 3 Oct 2024 16:30:49 -0400 Subject: [PATCH] Fix readme typo (#2724) --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index de74ee220b..f143ea4b17 100644 --- a/README.md +++ b/README.md @@ -124,7 +124,7 @@ Starting your bot and attaching an event listener, using the right [intents][Gat ```java public static void main(String[] args) { JDABuilder.createLight(token, EnumSet.of(GatewayIntent.GUILD_MESSAGES, GatewayIntent.MESSAGE_CONTENT)) - .addEventListener(new MessageReceiveListener()) + .addEventListeners(new MessageReceiveListener()) .build(); } ``` @@ -152,7 +152,7 @@ This is a bot that makes use of [interactions](https://jda.wiki/using-jda/intera ```java public static void main(String[] args) { JDA jda = JDABuilder.createLight(token, Collections.emptyList()) - .addEventListener(new SlashCommandListener()) + .addEventListeners(new SlashCommandListener()) .build(); // Register your commands to make them visible globally on Discord: