ComponentWithAction
Abstract class representing a component with both an ID and executable action.
Parameters
Event type that triggers interaction actions for this component type
Context type used for this component's execution context
Modal form type representing the ModalForm subtype used, if any.
Timeout task that will be restarted when call is run, if any. This is intended to be used to in the timeout mechanism for the ComponentContainer that contains this component.
Callback returning a ModalForm object, probably the constructor of a subtype.
Inheritors
Properties
Bot object.
Whether to use a deferred ack, which will prevent Discord's "Thinking..." message.
Quick access to the command registry.
Bot permissions required to be able to run execute this component's action.
Sentry adapter, for easy access to Sentry functions.
Bot settings object.
Functions
Define a check which must pass for the component's body to be executed.
Overloaded check function to allow for DSL syntax.
Checks whether the bot has the specified required permissions, throwing if it doesn't.
If your bot requires permissions to be able to execute this component's body, add them using this function.
Runs standard checks that can be handled in a generic way, without worrying about subclass-specific checks.