discord jda get messages from user 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
});