Skip navigation links
A B C D E F G I K L M O P R S T U 

A

AlertReactionDecorator - Class in com.jesus_crie.modularbot.messagedecorator.decorator.disposable
Decorator with a single button that will delete the message when clicked or when it times out.
AlertReactionDecorator(Message, long, boolean) - Constructor for class com.jesus_crie.modularbot.messagedecorator.decorator.disposable.AlertReactionDecorator
Create an alert decorator with the default emote.
AlertReactionDecorator(Message, long, MessageReaction.ReactionEmote, boolean) - Constructor for class com.jesus_crie.modularbot.messagedecorator.decorator.disposable.AlertReactionDecorator
Create an alert decorator with a custom emote.
AutoDeleteDisposableReactionDecorator - Class in com.jesus_crie.modularbot.messagedecorator.decorator.disposable
 
AutoDeleteDisposableReactionDecorator(Message, long, DecoratorButton...) - Constructor for class com.jesus_crie.modularbot.messagedecorator.decorator.disposable.AutoDeleteDisposableReactionDecorator
 
AutoDestroyMessageDecorator - Class in com.jesus_crie.modularbot.messagedecorator.decorator
A decorator that will destroy itself and the bound message after a given period of time.
AutoDestroyMessageDecorator(Message, long, TimeUnit, Runnable) - Constructor for class com.jesus_crie.modularbot.messagedecorator.decorator.AutoDestroyMessageDecorator
Create an auto destroy decorator.

B

binding - Variable in class com.jesus_crie.modularbot.messagedecorator.decorator.MessageDecorator
 
buttons - Variable in class com.jesus_crie.modularbot.messagedecorator.decorator.ReactionDecorator
 

C

Cacheable - Interface in com.jesus_crie.modularbot.messagedecorator
 
checkEmote(GenericMessageReactionEvent) - Method in class com.jesus_crie.modularbot.messagedecorator.button.DecoratorButton
Used to check if an is eligible for this button.
checkEmote(GenericMessageReactionEvent) - Method in class com.jesus_crie.modularbot.messagedecorator.button.EmoteDecoratorButton
 
checkEmote(GenericMessageReactionEvent) - Method in class com.jesus_crie.modularbot.messagedecorator.button.UnicodeDecoratorButton
 
checkTimeout(long) - Method in class com.jesus_crie.modularbot.messagedecorator.decorator.MessageDecorator
Used to check if the given timeout is valid or not.
cleanup() - Method in class com.jesus_crie.modularbot.messagedecorator.MessageDecoratorModule
 
collectVotes() - Method in class com.jesus_crie.modularbot.messagedecorator.decorator.permanent.PollReactionDecorator
Request the emotes under the message and count them, minus one for the base reaction.
collectVotesByName() - Method in class com.jesus_crie.modularbot.messagedecorator.decorator.permanent.PollReactionDecorator
Same as PollReactionDecorator.collectVotes() but the key will be the name of the emote (or the unicode character).
com.jesus_crie.modularbot.messagedecorator - package com.jesus_crie.modularbot.messagedecorator
 
com.jesus_crie.modularbot.messagedecorator.button - package com.jesus_crie.modularbot.messagedecorator.button
 
com.jesus_crie.modularbot.messagedecorator.decorator - package com.jesus_crie.modularbot.messagedecorator.decorator
 
com.jesus_crie.modularbot.messagedecorator.decorator.disposable - package com.jesus_crie.modularbot.messagedecorator.decorator.disposable
 
com.jesus_crie.modularbot.messagedecorator.decorator.permanent - package com.jesus_crie.modularbot.messagedecorator.decorator.permanent
 
ConfirmReactionDecorator - Class in com.jesus_crie.modularbot.messagedecorator.decorator.disposable
 
ConfirmReactionDecorator(Message, long, SerializableConsumer<ConfirmReactionDecorator>, SerializableConsumer<ConfirmReactionDecorator>, SerializableConsumer<ConfirmReactionDecorator>, boolean) - Constructor for class com.jesus_crie.modularbot.messagedecorator.decorator.disposable.ConfirmReactionDecorator
Create a confirm decorator with the default emotes and custom actions for each choice.
ConfirmReactionDecorator(Message, long, SerializableBiConsumer<ConfirmReactionDecorator, Boolean>, SerializableConsumer<ConfirmReactionDecorator>, boolean) - Constructor for class com.jesus_crie.modularbot.messagedecorator.decorator.disposable.ConfirmReactionDecorator
Create a confirm decorator with the default emotes and a common action for both buttons.
ConfirmReactionDecorator(Message, long, MessageReaction.ReactionEmote, MessageReaction.ReactionEmote, SerializableBiConsumer<ConfirmReactionDecorator, Boolean>, SerializableConsumer<ConfirmReactionDecorator>, boolean) - Constructor for class com.jesus_crie.modularbot.messagedecorator.decorator.disposable.ConfirmReactionDecorator
Create a confirm decorator with custom emotes and a common action for both buttons.
ConfirmReactionDecorator(Message, long, DecoratorButton, DecoratorButton, SerializableConsumer<ConfirmReactionDecorator>, boolean) - Constructor for class com.jesus_crie.modularbot.messagedecorator.decorator.disposable.ConfirmReactionDecorator
Create a confirm decorator with custom buttons.
createListener(Object...) - Method in class com.jesus_crie.modularbot.messagedecorator.decorator.AutoDestroyMessageDecorator
 
createListener(Object...) - Method in class com.jesus_crie.modularbot.messagedecorator.decorator.MessageDecorator
Used to create the listener.
createListener(Object...) - Method in class com.jesus_crie.modularbot.messagedecorator.decorator.ReactionDecorator
 
creationTime - Variable in class com.jesus_crie.modularbot.messagedecorator.decorator.MessageDecorator
 

D

DecoratorButton - Class in com.jesus_crie.modularbot.messagedecorator.button
 
DecoratorButton(SerializableConsumer<GenericMessageReactionEvent>) - Constructor for class com.jesus_crie.modularbot.messagedecorator.button.DecoratorButton
 
DecoratorListener - Interface in com.jesus_crie.modularbot.messagedecorator
 
DEFAULT_NO_EMOTE - Static variable in class com.jesus_crie.modularbot.messagedecorator.decorator.disposable.ConfirmReactionDecorator
The default "no" emote.
DEFAULT_REACTION - Static variable in class com.jesus_crie.modularbot.messagedecorator.decorator.disposable.AlertReactionDecorator
The default emote.
DEFAULT_YES_EMOTE - Static variable in class com.jesus_crie.modularbot.messagedecorator.decorator.disposable.ConfirmReactionDecorator
The default "yes" emote.
deleteAfter - Variable in class com.jesus_crie.modularbot.messagedecorator.decorator.disposable.SafeAutoDestroyDisposableReactionDecorator
 
deserializeReactionEmote(String, ModularBot) - Static method in interface com.jesus_crie.modularbot.messagedecorator.Cacheable
Deserialize an emote serialized by DecoratorButton.getEmoteSerialized()
destroy() - Method in class com.jesus_crie.modularbot.messagedecorator.decorator.AutoDestroyMessageDecorator
 
destroy() - Method in class com.jesus_crie.modularbot.messagedecorator.decorator.MessageDecorator
Destroy the decorator.
destroy() - Method in class com.jesus_crie.modularbot.messagedecorator.decorator.ReactionDecorator
 
destroyButtons() - Method in class com.jesus_crie.modularbot.messagedecorator.decorator.ReactionDecorator
Remove the reaction of the button.
DisposableReactionDecorator - Class in com.jesus_crie.modularbot.messagedecorator.decorator.disposable
An implementation of ReactionDecorator that can be successfully triggered only one time.
DisposableReactionDecorator(Message, long, DecoratorButton...) - Constructor for class com.jesus_crie.modularbot.messagedecorator.decorator.disposable.DisposableReactionDecorator
 

E

emote - Variable in class com.jesus_crie.modularbot.messagedecorator.button.UnicodeDecoratorButton
 
EmoteDecoratorButton - Class in com.jesus_crie.modularbot.messagedecorator.button
 
EmoteDecoratorButton(Emote, SerializableConsumer<GenericMessageReactionEvent>) - Constructor for class com.jesus_crie.modularbot.messagedecorator.button.EmoteDecoratorButton
 
equals(Object) - Method in class com.jesus_crie.modularbot.messagedecorator.decorator.MessageDecorator
Check if 2 decorators are the same.

F

fromReactionEmote(MessageReaction.ReactionEmote, SerializableConsumer<GenericMessageReactionEvent>) - Static method in class com.jesus_crie.modularbot.messagedecorator.button.DecoratorButton
Create a EmoteDecoratorButton or a UnicodeDecoratorButton by looking at the given ReactionEmote and build the button based on this emote.

G

getActionSerializable() - Method in class com.jesus_crie.modularbot.messagedecorator.button.DecoratorButton
 
getBinding(long, long, ModularBot) - Static method in interface com.jesus_crie.modularbot.messagedecorator.Cacheable
Retrieve the binding from discord using the channel and binding id.
getBinding() - Method in class com.jesus_crie.modularbot.messagedecorator.decorator.MessageDecorator
Get the bound message.
getDecorators() - Method in class com.jesus_crie.modularbot.messagedecorator.MessageDecoratorModule
 
getEmoteSerialized() - Method in class com.jesus_crie.modularbot.messagedecorator.button.DecoratorButton
Return a serialized version of the emote corresponding to this button.
getEmoteSerialized() - Method in class com.jesus_crie.modularbot.messagedecorator.button.EmoteDecoratorButton
 
getEmoteSerialized() - Method in class com.jesus_crie.modularbot.messagedecorator.button.UnicodeDecoratorButton
 
getExpireTime() - Method in class com.jesus_crie.modularbot.messagedecorator.decorator.MessageDecorator
Get the timestamp in milliseconds where the decorator will have expired or 0 for infinite or -1 if the decorator is dead.
getReactionEmote() - Method in class com.jesus_crie.modularbot.messagedecorator.button.DecoratorButton
Get a ReactionEmote representing the associated emote.
getReactionEmote() - Method in class com.jesus_crie.modularbot.messagedecorator.button.EmoteDecoratorButton
 
getReactionEmote() - Method in class com.jesus_crie.modularbot.messagedecorator.button.UnicodeDecoratorButton
 

I

isAlive - Variable in class com.jesus_crie.modularbot.messagedecorator.decorator.MessageDecorator
 
isAlive() - Method in class com.jesus_crie.modularbot.messagedecorator.decorator.MessageDecorator
Check if the decorator is still alive.

K

KEY_ACTION_FUNCTIONAL - Static variable in interface com.jesus_crie.modularbot.messagedecorator.Cacheable
 
KEY_ACTION_SCRIPT - Static variable in interface com.jesus_crie.modularbot.messagedecorator.Cacheable
 
KEY_BINDING_CHANNEL_ID - Static variable in interface com.jesus_crie.modularbot.messagedecorator.Cacheable
 
KEY_BINDING_ID - Static variable in interface com.jesus_crie.modularbot.messagedecorator.Cacheable
 
KEY_CLASS - Static variable in interface com.jesus_crie.modularbot.messagedecorator.Cacheable
 
KEY_CLASS_UNDERLYING - Static variable in interface com.jesus_crie.modularbot.messagedecorator.Cacheable
 
KEY_DELETE_AFTER - Static variable in interface com.jesus_crie.modularbot.messagedecorator.Cacheable
 
KEY_EMOTE - Static variable in interface com.jesus_crie.modularbot.messagedecorator.Cacheable
 
KEY_POLL_VOTE_ACTION - Static variable in interface com.jesus_crie.modularbot.messagedecorator.Cacheable
 
KEY_POLL_VOTES - Static variable in interface com.jesus_crie.modularbot.messagedecorator.Cacheable
 
KEY_TIMEOUT - Static variable in interface com.jesus_crie.modularbot.messagedecorator.Cacheable
 
KEY_TIMEOUT_ACTION - Static variable in interface com.jesus_crie.modularbot.messagedecorator.Cacheable
 

L

listener - Variable in class com.jesus_crie.modularbot.messagedecorator.decorator.MessageDecorator
 
listeners - Variable in class com.jesus_crie.modularbot.messagedecorator.decorator.MessageDecorator
 

M

MessageDecorator<T extends net.dv8tion.jda.core.events.Event> - Class in com.jesus_crie.modularbot.messagedecorator.decorator
Class that can extends the behaviour of a discord Message by interacting in specific manners with it.
MessageDecorator(Message, long) - Constructor for class com.jesus_crie.modularbot.messagedecorator.decorator.MessageDecorator
Build the base of a decorator.
MessageDecoratorModule - Class in com.jesus_crie.modularbot.messagedecorator
 
MessageDecoratorModule(NightConfigWrapperModule, String) - Constructor for class com.jesus_crie.modularbot.messagedecorator.MessageDecoratorModule
 
MessageDecoratorModule(NightConfigWrapperModule, File) - Constructor for class com.jesus_crie.modularbot.messagedecorator.MessageDecoratorModule
 

O

onDestroy() - Method in interface com.jesus_crie.modularbot.messagedecorator.DecoratorListener
 
onReady() - Method in interface com.jesus_crie.modularbot.messagedecorator.DecoratorListener
 
onShardsReady(ModularBot) - Method in class com.jesus_crie.modularbot.messagedecorator.MessageDecoratorModule
 
onShutdownShards() - Method in class com.jesus_crie.modularbot.messagedecorator.MessageDecoratorModule
 
onTimeout() - Method in class com.jesus_crie.modularbot.messagedecorator.decorator.AutoDestroyMessageDecorator
 
onTimeout() - Method in class com.jesus_crie.modularbot.messagedecorator.decorator.disposable.ConfirmReactionDecorator
 
onTimeout() - Method in class com.jesus_crie.modularbot.messagedecorator.decorator.disposable.SafeAutoDestroyDisposableReactionDecorator
 
onTimeout() - Method in class com.jesus_crie.modularbot.messagedecorator.decorator.MessageDecorator
Triggered when the decorator times out.
onTimeout - Variable in class com.jesus_crie.modularbot.messagedecorator.decorator.permanent.PollReactionDecorator
 
onTimeout() - Method in class com.jesus_crie.modularbot.messagedecorator.decorator.permanent.PollReactionDecorator
 
onTimeout() - Method in class com.jesus_crie.modularbot.messagedecorator.decorator.ReactionDecorator
 
onTimeout() - Method in interface com.jesus_crie.modularbot.messagedecorator.DecoratorListener
 
onTrigger - Variable in class com.jesus_crie.modularbot.messagedecorator.button.DecoratorButton
 
onTrigger(GenericMessageReactionEvent) - Method in class com.jesus_crie.modularbot.messagedecorator.button.DecoratorButton
Check the event with DecoratorButton.checkEmote(GenericMessageReactionEvent) and triggers the button if the event is valid, otherwise simply return.
onTrigger(GenericMessageReactionEvent) - Method in class com.jesus_crie.modularbot.messagedecorator.decorator.disposable.AutoDeleteDisposableReactionDecorator
 
onTrigger(GenericMessageReactionEvent) - Method in class com.jesus_crie.modularbot.messagedecorator.decorator.disposable.DisposableReactionDecorator
Extends the basic behaviour by destroying the decorator if a button is triggered.
onTrigger(GenericMessageReactionEvent) - Method in class com.jesus_crie.modularbot.messagedecorator.decorator.permanent.PollReactionDecorator
 
onTrigger(GenericMessageReactionEvent) - Method in class com.jesus_crie.modularbot.messagedecorator.decorator.ReactionDecorator
Called when the decorator is triggered.
onVote - Variable in class com.jesus_crie.modularbot.messagedecorator.decorator.permanent.PollReactionDecorator
 

P

PanelReactionDecorator - Class in com.jesus_crie.modularbot.messagedecorator.decorator.permanent
A permanent decorator that needs to be extended because it might contains pretty complex methods.
PanelReactionDecorator(Message, long) - Constructor for class com.jesus_crie.modularbot.messagedecorator.decorator.permanent.PanelReactionDecorator
 
PanelReactionDecorator.RegisterPanelAction - Annotation Type in com.jesus_crie.modularbot.messagedecorator.decorator.permanent
 
PermanentReactionDecorator - Class in com.jesus_crie.modularbot.messagedecorator.decorator.permanent
Mark the decorator as permanent.
PermanentReactionDecorator(Message, long, DecoratorButton...) - Constructor for class com.jesus_crie.modularbot.messagedecorator.decorator.permanent.PermanentReactionDecorator
 
PollReactionDecorator - Class in com.jesus_crie.modularbot.messagedecorator.decorator.permanent
A persistent decorator that can retrieve the amount of the desired emotes under a specific message, like a poll.
PollReactionDecorator(Message, long, SerializableBiConsumer<PollReactionDecorator, GenericMessageReactionEvent>, SerializableConsumer<PollReactionDecorator>, MessageReaction.ReactionEmote...) - Constructor for class com.jesus_crie.modularbot.messagedecorator.decorator.permanent.PollReactionDecorator
Create a poll decorator using ReactionEmote for the votes.
PollReactionDecorator(Message, long, SerializableBiConsumer<PollReactionDecorator, GenericMessageReactionEvent>, SerializableConsumer<PollReactionDecorator>, String...) - Constructor for class com.jesus_crie.modularbot.messagedecorator.decorator.permanent.PollReactionDecorator
Constructor that allows only unicode emotes for votes.
PollReactionDecorator(Message, long, SerializableBiConsumer<PollReactionDecorator, GenericMessageReactionEvent>, SerializableConsumer<PollReactionDecorator>, Emote...) - Constructor for class com.jesus_crie.modularbot.messagedecorator.decorator.permanent.PollReactionDecorator
Constructor that allows only custom server emotes for votes.

R

ReactionDecorator - Class in com.jesus_crie.modularbot.messagedecorator.decorator
Decorator made to interact with the reactions of a message.
ReactionDecorator(Message, long, DecoratorButton...) - Constructor for class com.jesus_crie.modularbot.messagedecorator.decorator.ReactionDecorator
Initialize the decorator.
register(ModularBot) - Method in class com.jesus_crie.modularbot.messagedecorator.decorator.MessageDecorator
Register this decorator.
register(MessageDecoratorModule) - Method in class com.jesus_crie.modularbot.messagedecorator.decorator.MessageDecorator
Register this decorator.
registerDecorator(MessageDecorator<?>) - Method in class com.jesus_crie.modularbot.messagedecorator.MessageDecoratorModule
Register a decorator in this module.
registerPanelMethod(MessageReaction.ReactionEmote, Method) - Method in class com.jesus_crie.modularbot.messagedecorator.decorator.permanent.PanelReactionDecorator
Register the given pair emote/method.
registerPanelMethod(int, MessageReaction.ReactionEmote, Method) - Method in class com.jesus_crie.modularbot.messagedecorator.decorator.permanent.PanelReactionDecorator
Register the given pair emote/method at the given position.
removeEmote(Message) - Method in class com.jesus_crie.modularbot.messagedecorator.button.DecoratorButton
Called when the decorator is destroying and need to remove the reactions.
removeEmote(Message) - Method in class com.jesus_crie.modularbot.messagedecorator.button.EmoteDecoratorButton
 
removeEmote(Message) - Method in class com.jesus_crie.modularbot.messagedecorator.button.UnicodeDecoratorButton
 

S

SafeAutoDestroyDisposableReactionDecorator - Class in com.jesus_crie.modularbot.messagedecorator.decorator.disposable
A disposable decorator that can auto destroy after being triggered.
SafeAutoDestroyDisposableReactionDecorator(Message, long, boolean, DecoratorButton...) - Constructor for class com.jesus_crie.modularbot.messagedecorator.decorator.disposable.SafeAutoDestroyDisposableReactionDecorator
Create an auto destroy disposable decorator.
serialize() - Method in class com.jesus_crie.modularbot.messagedecorator.button.DecoratorButton
 
serialize() - Method in interface com.jesus_crie.modularbot.messagedecorator.Cacheable
Used to serialize the object into a Config usable by the config module.
serialize() - Method in class com.jesus_crie.modularbot.messagedecorator.decorator.disposable.AlertReactionDecorator
 
serialize() - Method in class com.jesus_crie.modularbot.messagedecorator.decorator.permanent.PanelReactionDecorator
 
serialize() - Method in class com.jesus_crie.modularbot.messagedecorator.decorator.permanent.PollReactionDecorator
 
setup() - Method in class com.jesus_crie.modularbot.messagedecorator.decorator.AutoDestroyMessageDecorator
Setup useless here.
setup() - Method in class com.jesus_crie.modularbot.messagedecorator.decorator.MessageDecorator
Used to setup the decorator, this must be triggered out of the constructor.
setup() - Method in class com.jesus_crie.modularbot.messagedecorator.decorator.permanent.PanelReactionDecorator
 
setup() - Method in class com.jesus_crie.modularbot.messagedecorator.decorator.ReactionDecorator
Used to setup the decorator, this must be triggered out of the constructor.
setupEmote(Message) - Method in class com.jesus_crie.modularbot.messagedecorator.button.DecoratorButton
Called when the decorator is initializing.
setupEmote(Message) - Method in class com.jesus_crie.modularbot.messagedecorator.button.EmoteDecoratorButton
 
setupEmote(Message) - Method in class com.jesus_crie.modularbot.messagedecorator.button.UnicodeDecoratorButton
 

T

timeout - Variable in class com.jesus_crie.modularbot.messagedecorator.decorator.MessageDecorator
 
toString() - Method in class com.jesus_crie.modularbot.messagedecorator.decorator.MessageDecorator
 
tryDeserialize(Config, ModularBot) - Static method in class com.jesus_crie.modularbot.messagedecorator.decorator.disposable.AlertReactionDecorator
Deserialize an AlertReactionDecorator from a config object.
tryDeserialize(Config, ModularBot) - Static method in class com.jesus_crie.modularbot.messagedecorator.decorator.permanent.PanelReactionDecorator
Deserialize a panel decorator by instantiating its underlying class.
tryDeserialize(Config, ModularBot) - Static method in class com.jesus_crie.modularbot.messagedecorator.decorator.permanent.PollReactionDecorator
Try to convert a Config into a poll decorator.

U

UnicodeDecoratorButton - Class in com.jesus_crie.modularbot.messagedecorator.button
 
UnicodeDecoratorButton(String, SerializableConsumer<GenericMessageReactionEvent>) - Constructor for class com.jesus_crie.modularbot.messagedecorator.button.UnicodeDecoratorButton
 
unregisterBoundDecorator(long) - Method in class com.jesus_crie.modularbot.messagedecorator.MessageDecoratorModule
Destroy and unregister a bound decorator by its binding's id.
updateMessage() - Method in class com.jesus_crie.modularbot.messagedecorator.decorator.MessageDecorator
Update the reference to the bound message by querying it again from JDA.
A B C D E F G I K L M O P R S T U 
Skip navigation links