Uses of Interface
com.github.ygimenez.model.ThrowingConsumer
Packages that use ThrowingConsumer
Package
Description
-
Uses of ThrowingConsumer in com.github.ygimenez.method
Method parameters in com.github.ygimenez.method with type arguments of type ThrowingConsumerModifier and TypeMethodDescriptionstatic ActionReferencePages.buttonize(net.dv8tion.jda.api.entities.Message msg, Map<net.dv8tion.jda.api.entities.emoji.Emoji,ThrowingConsumer<ButtonWrapper>> buttons, boolean useButtons, boolean showCancelButton)Adds buttons to the specifiedMessage/MessageEmbed, with each executing a specific task on click.static ActionReferencePages.buttonize(net.dv8tion.jda.api.entities.Message msg, Map<net.dv8tion.jda.api.entities.emoji.Emoji,ThrowingConsumer<ButtonWrapper>> buttons, boolean useButtons, boolean showCancelButton, int time, TimeUnit unit)Adds buttons to the specifiedMessage/MessageEmbed, with each executing a specific task on click.static ActionReferencePages.buttonize(net.dv8tion.jda.api.entities.Message msg, Map<net.dv8tion.jda.api.entities.emoji.Emoji,ThrowingConsumer<ButtonWrapper>> buttons, boolean useButtons, boolean showCancelButton, int time, TimeUnit unit, Predicate<net.dv8tion.jda.api.entities.User> canInteract)Adds buttons to the specifiedMessage/MessageEmbed, with each executing a specific task on click.static ActionReferencePages.buttonize(net.dv8tion.jda.api.entities.Message msg, Map<net.dv8tion.jda.api.entities.emoji.Emoji,ThrowingConsumer<ButtonWrapper>> buttons, boolean useButtons, boolean cancellable, int time, TimeUnit unit, Predicate<net.dv8tion.jda.api.entities.User> canInteract, Consumer<net.dv8tion.jda.api.entities.Message> onCancel)Adds buttons to the specifiedMessage/MessageEmbed, with each executing a specific task on click.static ActionReferencePages.buttonize(net.dv8tion.jda.api.entities.Message msg, Map<net.dv8tion.jda.api.entities.emoji.Emoji,ThrowingConsumer<ButtonWrapper>> buttons, boolean useButtons, boolean showCancelButton, Predicate<net.dv8tion.jda.api.entities.User> canInteract)Adds buttons to the specifiedMessage/MessageEmbed, with each executing a specific task on click.static ActionReferencePages.buttonize(net.dv8tion.jda.api.entities.Message msg, Map<net.dv8tion.jda.api.entities.emoji.Emoji,ThrowingConsumer<ButtonWrapper>> buttons, boolean useButtons, boolean showCancelButton, Predicate<net.dv8tion.jda.api.entities.User> canInteract, Consumer<net.dv8tion.jda.api.entities.Message> onCancel)Adds buttons to the specifiedMessage/MessageEmbed, with each executing a specific task on click. -
Uses of ThrowingConsumer in com.github.ygimenez.model
Methods in com.github.ygimenez.model that return ThrowingConsumerModifier and TypeMethodDescriptionstatic ThrowingConsumer<net.dv8tion.jda.api.interactions.InteractionHook>PUtilsConfig.getOnRemove()Retrieve the action performed when encounteing an unmapped event.Methods in com.github.ygimenez.model with parameters of type ThrowingConsumerModifier and TypeMethodDescriptionstatic voidPUtilsConfig.setOnRemove(ThrowingConsumer<net.dv8tion.jda.api.interactions.InteractionHook> onRemove)Set the action to be performed when encountering an unmapped event. -
Uses of ThrowingConsumer in com.github.ygimenez.model.helper
Methods in com.github.ygimenez.model.helper with parameters of type ThrowingConsumerModifier and TypeMethodDescriptionButtonizeHelper.addAction(net.dv8tion.jda.api.entities.emoji.Emoji emoji, ThrowingConsumer<ButtonWrapper> action)Adds a new button to the map.Constructor parameters in com.github.ygimenez.model.helper with type arguments of type ThrowingConsumerModifierConstructorDescriptionButtonizeHelper(Map<net.dv8tion.jda.api.entities.emoji.Emoji,ThrowingConsumer<ButtonWrapper>> buttons, boolean useButtons)Creates a new buttonize event helper with the supplied map.