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(); ```