PublicStringSelectMenu
Class representing a public-only string select (dropdown) menu.
Properties
Bot object.
Whether to use a deferred ack, which will prevent Discord's "Thinking..." message.
The initial response builder, omit to ack instead.
The maximum number of choices that the user can make. Set to null for no maximum.
The minimum number of choices that the user must make.
List of options for the user to choose from.
Placeholder text to show before the user has selected any options.
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
Apply the string select menu to an action row builder.
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.
Function to create the context for the select menu.
If enabled, adds the initial Sentry breadcrumb to the given context.
A general way to handle errors thrown during the course of a select menu 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.
Validate the options of the string select menu.