get id of your recent message 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
});