Answers for "how to get the id of message the bot just sent in jda"

1

java discord bot get id of message it just sent

channel.sendMessage(content).queue((message) -> {
    long messageId = message.getIdLong();
    // use messageId here
});
Posted by: Guest on August-19-2020

Code answers related to "how to get the id of message the bot just sent in jda"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language