Class AbstractChannelEventContext<E extends @NonNull Event>

java.lang.Object
dev.sympho.bot_utils.event.AbstractChannelEventContext<E>
Type Parameters:
E - The event type.
All Implemented Interfaces:
AccessContext, AccessValidator, ChannelAccessContext, ChannelAccessValidator, ChannelEventContext, EventContext
Direct Known Subclasses:
AbstractRepliableContext

public abstract class AbstractChannelEventContext<E extends @NonNull Event> extends Object implements ChannelEventContext
Convenience base for implementing a channel-bound event context.

Most leaf interfaces here should be able to be implemented on top of this class without any further overrides as they already have default methods pulling all necessary data from the event.

Since:
1.0
Version:
1.0
  • Constructor Details

    • AbstractChannelEventContext

      protected AbstractChannelEventContext(E event, AccessManager accessManager)
      Creates a new instance.
      Parameters:
      event - The triggering event.
      accessManager - The access manager to use.
  • Method Details