Expand description
Interactive message elements for use with Interaction
s.
Refer to Discord Docs/Message Components for additional information.
Structs§
- Action
Row - 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
Component
s. Containers are visually distinct from surroundingComponent
s and have an optional customizable color bar. - File
Display - A component displaying an uploaded file as an attachment.
- Media
Gallery - Component used to organize a set of
MediaGalleryItem
s. - Media
Gallery Item - A media gallery item.
- Section
- A component representing a section of a message.
- Select
Menu - Dropdown-style
Component
that renders below messages. - Select
Menu Option - Dropdown options that are part of
SelectMenu
. - Separator
- A separator is a layout component that adds vertical padding and visual division between components.
- Text
Display - Top-level component that allows markdown formatted text.
- Text
Input - Pop-up
Component
that renders on modals. - Thumbnail
- Thumbnail containing a small image. Only usable as a accessory in a section.
- Unfurled
Media Item - Unfurled media item for use in components.
Enums§
- Button
Style - Style of a
Button
. - Component
- Interactive message element.
- Component
Type - Type of
Component
. - Select
Default Value - A default value for an auto-populated select menu.
- Select
Menu Type - A
SelectMenu
’s type. - Separator
Spacing Size - The size of the separator padding.
- Text
Input Style - Style of an
TextInput
.