public abstract class AutoDeleteDisposableReactionDecorator extends DisposableReactionDecorator
buttons
binding, creationTime, isAlive, listener, listeners, timeout
Modifier | Constructor and Description |
---|---|
protected |
AutoDeleteDisposableReactionDecorator(net.dv8tion.jda.core.entities.Message binding,
long timeout,
DecoratorButton... buttons) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
onTrigger(net.dv8tion.jda.core.events.message.react.GenericMessageReactionEvent event)
Extends the basic behaviour by destroying the decorator if a button is triggered.
|
createListener, destroy, destroyButtons, onTimeout, setup
checkTimeout, equals, getBinding, getExpireTime, isAlive, register, register, toString, updateMessage
protected AutoDeleteDisposableReactionDecorator(@Nonnull net.dv8tion.jda.core.entities.Message binding, long timeout, @Nonnull DecoratorButton... buttons)
protected boolean onTrigger(@Nonnull net.dv8tion.jda.core.events.message.react.GenericMessageReactionEvent event)
DisposableReactionDecorator
onTrigger
in class DisposableReactionDecorator
event
- The event that was thrown.