Module component

Module component 

Source
Expand description

Interactive message elements for use with Interactions.

Refer to Discord Docs/Message Components for additional information.

Structs§

ActionRow
Non-interactive Component container of other (non action row) components.
Button
Clickable Component below messages.
Container
A Container is a top-level layout component that holds up to 10 Components. Containers are visually distinct from surrounding Components and have an optional customizable color bar.
FileDisplay
A component displaying an uploaded file as an attachment.
MediaGallery
Component used to organize a set of MediaGalleryItems.
MediaGalleryItem
A media gallery item.
Section
A component representing a section of a message.
SelectMenu
Dropdown-style Component that renders below messages.
SelectMenuOption
Dropdown options that are part of SelectMenu.
Separator
A separator is a layout component that adds vertical padding and visual division between components.
TextDisplay
Top-level component that allows markdown formatted text.
TextInput
Pop-up Component that renders on modals.
Thumbnail
Thumbnail containing a small image. Only usable as a accessory in a section.
UnfurledMediaItem
Unfurled media item for use in components.

Enums§

ButtonStyle
Style of a Button.
Component
Interactive message element.
ComponentType
Type of Component.
SelectDefaultValue
A default value for an auto-populated select menu.
SelectMenuType
A SelectMenu’s type.
SeparatorSpacingSize
The size of the separator padding.
TextInputStyle
Style of an TextInput.