From 67859a830e4c14dbada7e696114f64eaa4cd6ede Mon Sep 17 00:00:00 2001 From: powercas_gamer Date: Thu, 27 Jun 2024 15:49:54 +0200 Subject: [PATCH] fix command manager event listener --- docs/discord/jda5.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/discord/jda5.md b/docs/discord/jda5.md index 73ff4b9..8ea1b11 100644 --- a/docs/discord/jda5.md +++ b/docs/discord/jda5.md @@ -35,7 +35,7 @@ You then register the command manager as a JDA event listener. Example: ```java JDABuilder.createDefault(yourToken) - .addEventListeners(commandManager) + .addEventListeners(commandManager.createListener()) .build(); ```