Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

JDA send DM

// Send message without response handling
public void sendMessage(User user, String content) {
    user.openPrivateChannel()
        .flatMap(channel -> channel.sendMessage(content))
        .queue();
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #JDA #send #DM
ADD COMMENT
Topic
Name
8+3 =