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

commonMain.entity.WelcomeScreen.kt Maven / Gradle / Ivy

The newest version!
package dev.kord.core.entity

import dev.kord.core.Kord
import dev.kord.core.KordObject
import dev.kord.core.cache.data.WelcomeScreenData
import dev.kord.core.entity.channel.WelcomeScreenChannel

/**
 * Shown to new members in community guild, returned when in the invite object.
 *
 * @property description the server description shown in the welcome screen.
 * @property welcomeScreenChannels  The channels shown in the welcome screen.
 */
public class WelcomeScreen(public val data: WelcomeScreenData, override val kord: Kord) : KordObject {

    public val description: String? get() = data.description

    public val welcomeScreenChannels: List
        get() = data.welcomeChannels.map { WelcomeScreenChannel(it, kord) }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy