GuildWidget

class GuildWidget(val data: GuildWidgetData, val guildId: Snowflake, val kord: Kord, val supplier: EntitySupplier = kord.defaultSupplier) : KordObject, Strategizable(source)

Constructors

Link copied to clipboard
constructor(data: GuildWidgetData, guildId: Snowflake, kord: Kord, supplier: EntitySupplier = kord.defaultSupplier)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override val kord: Kord

The kord instance that created this object.

Link copied to clipboard
open override val supplier: EntitySupplier

The supplier used to request entities.

Functions

Link copied to clipboard
inline suspend fun edit(builder: GuildWidgetModifyBuilder.() -> Unit): GuildWidget
Link copied to clipboard
inline suspend fun <T : Channel> getChannelOfOrNull(): T?
Link copied to clipboard
Link copied to clipboard
suspend fun getGuild(): Guild
Link copied to clipboard
suspend fun getGuildOrNull(): Guild?
Link copied to clipboard
open override fun withStrategy(strategy: EntitySupplyStrategy<*>): GuildWidget

Returns a copy of this class with a new supplier provided by the strategy.