public abstract class SafeAutoDestroyDisposableReactionDecorator extends AutoDeleteDisposableReactionDecorator
Modifier and Type | Field and Description |
---|---|
protected boolean |
deleteAfter |
buttons
binding, creationTime, isAlive, listener, listeners, timeout
Modifier | Constructor and Description |
---|---|
protected |
SafeAutoDestroyDisposableReactionDecorator(net.dv8tion.jda.core.entities.Message binding,
long timeout,
boolean deleteAfter,
DecoratorButton... buttons)
Create an auto destroy disposable decorator.
|
Modifier and Type | Method and Description |
---|---|
protected void |
onTimeout()
Triggered when the decorator times out.
|
onTrigger
createListener, destroy, destroyButtons, setup
checkTimeout, equals, getBinding, getExpireTime, isAlive, register, register, toString, updateMessage
protected SafeAutoDestroyDisposableReactionDecorator(@Nonnull net.dv8tion.jda.core.entities.Message binding, long timeout, boolean deleteAfter, @Nonnull DecoratorButton... buttons)
binding
- The bound message.timeout
- The amount of milliseconds before this decorator expire or 0 for infinite.deleteAfter
- Whether or not to delete the bound message after.buttons
- The buttons (reaction) that can trigger this decorator.protected void onTimeout()
MessageDecorator
On the other hand, an implementation like ReactionDecorator
will call MessageDecorator.destroy()
on timeout which is an expected behaviour.
onTimeout
in class ReactionDecorator