get ID from message in discord JDA 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
});