Skip to main content

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.
Checkbox
A component allowing a checkbox in a modal.
CheckboxGroup
A group of selectable checkboxes within a modal. Checkbox groups are only available in modals and must be put inside a label
CheckboxGroupOption
Selectable checkbox options put into the checkbox group
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.
ContentScanMetadata
Results of Discord’s content scanning, if the media item has been scanned.
ContentScanMetadataFlags
Content scan metadata flags.
FileDisplay
A component displaying an uploaded file as an attachment.
FileUpload
A component allowing uploading files in a modal.
Label
Top-level layout Component.
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.