InlineContainer

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard

Color of the container's left side

Link copied to clipboard

Raw integer color of the container's left side, you can use rgb, hsb or hex for it

Link copied to clipboard
Link copied to clipboard

Hides the file until the user clicks on it

Link copied to clipboard
open override var uniqueId: Int

Unique identifier of this component, see Component.withUniqueId

Functions

Link copied to clipboard
inline fun actionRow(components: Collection<ActionRowChildComponent> = emptyList(), uniqueId: Int = -1, block: InlineActionRow.() -> Unit = {})
inline fun actionRow(vararg components: ActionRowChildComponent, uniqueId: Int = -1, block: InlineActionRow.() -> Unit = {})
Link copied to clipboard
Link copied to clipboard
fun fileDisplay(fileName: String, uniqueId: Int = -1, spoiler: Boolean = false, block: InlineFileDisplay.() -> Unit = {})
fun fileDisplay(file: FileUpload, uniqueId: Int = -1, spoiler: Boolean = false, block: InlineFileDisplay.() -> Unit = {})
Link copied to clipboard
inline fun mediaGallery(items: Collection<MediaGalleryItem> = emptyList(), uniqueId: Int = -1, block: InlineMediaGallery.() -> Unit = {})
inline fun mediaGallery(vararg items: MediaGalleryItem, uniqueId: Int = -1, block: InlineMediaGallery.() -> Unit = {})
Link copied to clipboard
inline fun section(accessory: SectionAccessoryComponent? = null, components: Collection<SectionContentComponent> = emptyList(), uniqueId: Int = -1, block: InlineSection.() -> Unit = {})
inline fun section(accessory: SectionAccessoryComponent? = null, vararg components: SectionContentComponent, uniqueId: Int = -1, block: InlineSection.() -> Unit = {})

See Section.

Link copied to clipboard
inline fun separator(uniqueId: Int = -1, isDivider: Boolean = true, spacing: Separator.Spacing = Separator.Spacing.SMALL, block: InlineSeparator.() -> Unit = {})
Link copied to clipboard
inline fun text(content: String? = null, uniqueId: Int = -1, block: InlineTextDisplay.() -> Unit = {})