Closed davidovski closed 4 years ago
The GuildMessageReceivedEvent is fired when the bot receives a private message.
This event should not be fired when the message is received in a private message channel.
public void onGuildMessageReceived(@Nonnull GuildMessageReceivedEvent event) { System.out.println(event.getMessage().getContentDisplay());
to the class
client = JDABuilder.createDefault(config.getString("token"), intents).build();
(intents is a list of intents that the bot will need)
N/A
I can't reproduce this. And the code internals suggest that this is impossible.
General Troubleshooting
Bug Report
The GuildMessageReceivedEvent is fired when the bot receives a private message.
Expected Behavior
This event should not be fired when the message is received in a private message channel.
Code Example or Reproduction Steps
to the class
Code for JDABuilder or DefaultShardManagerBuilder Used
(intents is a list of intents that the bot will need)
Exception or Error
N/A