JDA-Applications / JDA-Utilities

A series of tools and utilities for JDA to assist in bot creation
Apache License 2.0
218 stars 111 forks source link

Button Menu Issue #80

Closed DV8FromTheCode closed 6 years ago

DV8FromTheCode commented 6 years ago

Issue

Issue Checklist

Please follow the following steps before opening this issue.
Issues that do not complete the checklist may be closed without any help.

The issue tracker is reserved for issues, errors, and feature requests related to JDA-Utilities, and not questions and other requests for help.

Issue Information

Check all that apply:

This issue tracker does not assist or handle issues with the JDA library.
For JDA related issues, visit the JDA issue tracker and open an issue there.

Description

When I set an action for a Button Menu it never gets run. I create i menu that is sent to a players Direct Message to confirm an action to be ran back on the server.

Code: https://pastebin.com/akELa7y4

natanbc commented 6 years ago

You always create a new event waiter, but never register it as a listener. You should create only one and reuse it where you need it.

DV8FromTheCode commented 6 years ago

For the entire bot? Just have one event listener for all is what you are saying?

DV8FromTheCode commented 6 years ago

fixed, closed. Thank you @natanbc