Package dev.sympho.bot_utils.event
Class AbstractRepliableContext<E extends @NonNull Event>
java.lang.Object
dev.sympho.bot_utils.event.AbstractChannelEventContext<E>
dev.sympho.bot_utils.event.AbstractRepliableContext<E>
- Type Parameters:
E- The event type.
- All Implemented Interfaces:
AccessContext,AccessValidator,ChannelAccessContext,ChannelAccessValidator,ChannelEventContext,EventContext,RepliableContext
public abstract class AbstractRepliableContext<E extends @NonNull Event>
extends AbstractChannelEventContext<E>
implements RepliableContext
Convenience base for implementing an event context with reply functionality.
- Since:
- 1.0
- Version:
- 1.0
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractRepliableContext(E event, AccessManager accessManager, ReplyManager replyManager) Creates a new instance. -
Method Summary
Modifier and TypeMethodDescriptionreplies()Retrieves the initial reply manager for this instance.Methods inherited from class dev.sympho.bot_utils.event.AbstractChannelEventContext
event, validatorMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface dev.sympho.bot_utils.access.AccessContext
asGuild, guild, guildId, isPrivate, member, member, userMethods inherited from interface dev.sympho.bot_utils.access.ChannelAccessContext
asUser, channel, channelIdMethods inherited from interface dev.sympho.bot_utils.event.ChannelEventContext
belongs, belongs, belongs, belongs, hasAccess, hasAccess, validate, validatorMethods inherited from interface dev.sympho.bot_utils.event.EventContext
client, event, validate
-
Constructor Details
-
AbstractRepliableContext
Creates a new instance.- Parameters:
event- The triggering event.accessManager- The access manager to use.replyManager- The reply manager to use.
-
-
Method Details
-
replies
Description copied from interface:RepliableContextRetrieves the initial reply manager for this instance.- Specified by:
repliesin interfaceRepliableContext- Returns:
- The reply manager.
-