EphemeralInteractionButton
Class representing an ephemeral-only interaction button.
Properties
Bot object.
Whether to use a deferred ack, which will prevent Discord's "Thinking..." message.
A partial emoji object, either a guild or Unicode emoji. Optional if you've got a label.
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.
Convenience function for setting HasPartialEmoji.partialEmoji based on a given guild custom emoji.
Convenience function for setting HasPartialEmoji.partialEmoji based on a given reaction emoji.
Convenience function for setting HasPartialEmoji.partialEmoji based on a given Unicode emoji.
If enabled, adds the initial Sentry breadcrumb to the given context.
A general way to handle errors thrown during the course of a button action's execution.
Call this to open with a response, omit it to ack instead.
If your bot requires permissions to be able to execute this component's body, add them using this function.
Override this to implement a way to respond to the user, regardless of whatever happens.
Override this in order to implement any subclass-specific checks.
Runs standard checks that can be handled in a generic way, without worrying about subclass-specific checks.