Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

discord jda await msg

EventWaiter waiter = new EventWaiter();
// SO wouldn't let me insert new lines for some reason.
waiter.waitForEvent(GuildMessageReceivedEvent.class, (event) -> event.getMessage().getContentRaw().equalsIgnoreCase("hello"), (event) -> event.getChannel().sendMessage("hello!").queue()));
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #discord #jda #await #msg
ADD COMMENT
Topic
Name
3+7 =