All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.builder.component.ComponentBuilders.kt Maven / Gradle / Ivy

The newest version!
@file:Suppress("PropertyName")

package dev.kord.rest.builder.component

import dev.kord.common.annotation.KordDsl
import dev.kord.common.entity.DiscordComponent
import dev.kord.common.entity.optional.OptionalBoolean
import dev.kord.common.entity.optional.delegate.delegate

@KordDsl
public sealed interface ComponentBuilder {
    public fun build(): DiscordComponent
}

@KordDsl
public sealed class ActionRowComponentBuilder : ComponentBuilder {

    protected var _disabled: OptionalBoolean = OptionalBoolean.Missing
        private set

    /** Whether the component is disabled. Defaults to `false`. */
    public var disabled: Boolean? by ::_disabled.delegate()
}

@KordDsl
public sealed interface MessageComponentBuilder : ComponentBuilder




© 2015 - 2024 Weber Informatics LLC | Privacy Policy