Skip to content

Commit

Permalink
Fix readme typo (#2724)
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfieboy09 authored Oct 3, 2024
1 parent b2eb4f7 commit 8007014
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
```
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 8007014

Please sign in to comment.