jda how to get most recent messages code example
Example: java discord bot get id of message it just sent
channel.sendMessage(content).queue((message) -> {
long messageId = message.getIdLong();
// use messageId here
});
channel.sendMessage(content).queue((message) -> {
long messageId = message.getIdLong();
// use messageId here
});