Package-level declarations

Types

Link copied to clipboard
sealed interface AccessoryComponent : Component

A component which can be an accessory.

Link copied to clipboard

A non-interactive container component for other types of component.

Link copied to clipboard

An interactive component rendered on a Message. If this button contains a customId and is clicked by a user, a InteractionCreateEvent with a ComponentInteraction will fire.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
sealed interface Component

An interactive element inside a Message.

Link copied to clipboard

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.

Link copied to clipboard

A File is a top-level component that allows you to display an uploaded file as an attachment to the message and reference it in the component. Each file component can only display 1 attached file, but you can upload multiple files and add them to different file components within your payload. This is similar to the embeds field of a message but allows you to control the layout of your message by using this anywhere as a component

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

A Media Gallery is a top-level content component that allows you to display 1-10 media attachments in an organized gallery format. Each item can have optional descriptions and can be marked as spoilers.

Link copied to clipboard
Link copied to clipboard

Container to display text alongside an accessory component.

Link copied to clipboard
sealed interface SelectDefaultValue

A default value for auto-populated select menu components like UserSelectComponent, RoleSelectComponent, MentionableSelectComponent or ChannelSelectComponent.

Link copied to clipboard

An interactive dropdown menu rendered on a Message.

Link copied to clipboard

An option in a SelectMenuComponent.

Link copied to clipboard

A Separator is a top-level layout component that adds vertical padding and visual division between other components.

Link copied to clipboard

A Text Display is a top-level content component that allows you to add text to your message formatted with markdown and mention users and roles. This is similar to the content field of a message, but allows you to add multiple text components, controlling the layout of your message.

Link copied to clipboard

An interactive component rendered on a Modal.

Link copied to clipboard

A Thumbnail is a content component that is a small image only usable as an accessory in a section.

Link copied to clipboard

Representation of an unfurled media item.

Link copied to clipboard

A component type unknown to Kord.

Functions

Link copied to clipboard

Creates a Component from the data.