net.dv8tion.jda.core.hooks.ListenerAdapter Java Examples

The following examples show how to use net.dv8tion.jda.core.hooks.ListenerAdapter. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: JDA3Handler.java    From sdcf4j with GNU Lesser General Public License v3.0 9 votes vote down vote up
/**
 * Creates a new instance of this class.
 *
 * @param jda A JDA instance.
 */
public JDA3Handler(JDA jda) {
    jda.addEventListener(new ListenerAdapter() {
        @Override
        public void onMessageReceived(MessageReceivedEvent event) {
            handleMessageCreate(event);
        }
    });
}