Module application

Source
Expand description

Models about OAuth2 applications.

Structs§

ActionRow
An action row.
ApplicationFlags
The flags of the application.
AuthorizingIntegrationOwners
AutocompleteOption
The focused option for autocomplete interactions return by CommandData::autocomplete.
Button
A button component.
Command
The base command model that belongs to an application.
CommandData
The command data payload.
CommandDataOption
A set of a parameter and a value from the user.
CommandDataResolved
The resolved data of a command data interaction payload. It contains the objects of CommandDataOptions.
CommandInteraction
An interaction when a user invokes a slash command.
CommandOption
The parameters for an Command.
CommandOptionChoice
The only valid values a user can pick in an CommandOption.
CommandPermission
The CommandPermission data.
CommandPermissions
An Command permission.
ComponentInteraction
An interaction triggered by a message component.
ComponentInteractionData
A message component interaction data, provided by ComponentInteraction::data
CurrentApplicationInfo
Information about the current application and its owner.
InputText
An input text component for modal interactions
InstallParams
Settings for the application’s default in-app authorization link
InstallationContextConfig
Information about how the CurrentApplicationInfo is installed.
InteractionResponseFlags
The flags for an interaction response message.
MessageCommandInteractionMetadata
MessageComponentInteractionMetadata
MessageInteraction
Sent when a Message is a response to an Interaction.
MessageModalSubmitInteractionMetadata
ModalInteraction
An interaction triggered by a modal submit.
ModalInteractionData
A modal submit interaction data, provided by ModalInteraction::data
PartialCurrentApplicationInfo
Partial information about the given application.
PingInteraction
A ping interaction, which can only be received through an endpoint url.
ResolvedOption
SelectMenu
A select menu component.
SelectMenuOption
A select menu component options.
Team
Information about the Team group of the application.
TeamMember
Information about a Member on a Team.

Enums§

ActionRowComponent
A component which can be inside of an ActionRow.
AuthorizingIntegrationOwner
A cleaned up enum for determining the authorizing owner for an Interaction.
ButtonKind
ButtonStyle
The style of a button.
CommandDataOptionValue
The value of an CommandDataOption.
CommandOptionType
The type of an CommandOption.
CommandPermissionType
The type of a CommandPermission.
CommandType
The type of an application command.
ComponentInteractionDataKind
ComponentType
The type of a component
EntryPointHandlerType
Signifies how the invocation of a command of type PrimaryEntryPoint should be handled.
InputTextStyle
The style of the input text
InstallationContext
An enum representing the [installation contexts].
Interaction
Discord docs
InteractionContext
An enum representing the different [interaction contexts].
InteractionType
The type of an Interaction.
MembershipState
Discord docs.
MessageInteractionMetadata
Metadata about the interaction, including the source of the interaction relevant server and user IDs.
ResolvedTarget
The resolved value of a CommandData::target_id.
ResolvedValue
The resolved value of a CommandDataOption.
Scope
The available OAuth2 Scopes.
TeamMemberRole
Unresolved
Option value variants that couldn’t be resolved by CommandData::options().