Skip to content

Commit 2583455

Browse files
Replace MessageListenerExample with MessageLoggerExample (discord-jda#2163)
1 parent caf1dfb commit 2583455

File tree

4 files changed

+193
-293
lines changed

4 files changed

+193
-293
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -211,9 +211,9 @@ public class Bot extends ListenerAdapter
211211
System.exit(1);
212212
}
213213
// args[0] should be the token
214-
// We only need 2 intents in this bot. We only respond to messages in guilds and private channels.
214+
// We only need 3 intents in this bot. We only respond to messages in guilds and private channels.
215215
// All other events will be disabled.
216-
JDABuilder.createLight(args[0], GatewayIntent.GUILD_MESSAGES, GatewayIntent.DIRECT_MESSAGES)
216+
JDABuilder.createLight(args[0], GatewayIntent.GUILD_MESSAGES, GatewayIntent.DIRECT_MESSAGES, GatewayIntent.MESSAGE_CONTENT)
217217
.addEventListeners(new Bot())
218218
.setActivity(Activity.playing("Type !ping"))
219219
.build();

src/examples/java/MessageListenerExample.java

Lines changed: 0 additions & 291 deletions
This file was deleted.

0 commit comments

Comments
 (0)