Skip to content

Commit

Permalink
Refer to a correct method in sample code inside README
Browse files Browse the repository at this point in the history
  • Loading branch information
kezc authored and felldo committed Oct 24, 2023
1 parent d6b1bd6 commit a28bc2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/README_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public class MyFirstBot {
// Insert your bot's token here
String token = "your token";

DiscordApi api = new DiscordApiBuilder().setToken(token).addIntent(Intent.MESSAGE_CONTENT).login().join();
DiscordApi api = new DiscordApiBuilder().setToken(token).addIntents(Intent.MESSAGE_CONTENT).login().join();

// Add a listener which answers with "Pong!" if someone writes "!ping"
api.addMessageCreateListener(event -> {
Expand Down

0 comments on commit a28bc2f

Please sign in to comment.