bind To
Binds the given handler to this component.
Captured entities
Pay extra attention to not capture JDA entities in such handlers as they can stop being updated by JDA.
Parameters
The handler to run when the button is clicked
Binds the given handler to this component.
Captured entities
Pay extra attention to not capture JDA entities in such handlers as they can stop being updated by JDA.
You can still use User.ref and such from JDA-KTX to attenuate this issue, even though it will return you an outdated object if the entity cannot be found anymore.
Parameters
The handler to run when the button is clicked
Deprecated
Nothing to be configured, will be removed
Replace with
bindTo(handler)
Binds the given handler to this component.
Captured entities
Pay extra attention to not capture JDA entities in such handlers as they can stop being updated by JDA.
Parameters
The handler to run when the button is clicked
Deprecated
Nothing to be configured, will be removed
Replace with
bindTo(handler)
Binds the given handler to this component.
Captured entities
Pay extra attention to not capture JDA entities in such handlers as they can stop being updated by JDA.
You can still use User.ref and such from JDA-KTX to attenuate this issue, even though it will return you an outdated object if the entity cannot be found anymore.
Parameters
The handler to run when the button is clicked