GuildScheduledEvent

class GuildScheduledEvent(val data: GuildScheduledEventData, val kord: Kord, val supplier: EntitySupplier = kord.defaultSupplier) : GuildScheduledEventBehavior(source)

An instance of a Guild scheduled event belonging to a specific guild.

Constructors

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

Properties

Link copied to clipboard

The id of the channel this event will be hosted in, or null if entityType is External.

Link copied to clipboard

The user that created this event.

Link copied to clipboard

The id of the user that created this event.

Link copied to clipboard
Link copied to clipboard

The description of this event, if any.

Link copied to clipboard

The id of an entity associated with this event.

Link copied to clipboard
Link copied to clipboard

The type of this event.

Link copied to clipboard
open override val guildId: Snowflake

The id of the guild this event belongs to.

Link copied to clipboard
open override val id: Snowflake

The id of this event.

Link copied to clipboard
val image: Asset?
Link copied to clipboard

The cover image hash of this event.

Link copied to clipboard
open override val kord: Kord

The kord instance that created this object.

Link copied to clipboard
open val members: Flow<Member>
Link copied to clipboard

The name of this event.

Link copied to clipboard
Link copied to clipboard

The Instant in which this event will end, if any.

Link copied to clipboard

The Instant in which this event will start.

Link copied to clipboard

The status of this event.

Link copied to clipboard
open override val supplier: EntitySupplier

The supplier used to request entities.

Link copied to clipboard

The number of users subscribed to this event.

Link copied to clipboard
open val users: Flow<User>

Requests all the users which are interested in this event.

Functions

Link copied to clipboard
open suspend override fun asGuildScheduledEvent(): GuildScheduledEvent

Requests to get this behavior as a GuildScheduledEvent.

Link copied to clipboard

Requests to get this behavior as a Guild, returns null if the event isn't present.

Link copied to clipboard
open operator override fun compareTo(other: Entity): Int

Compares entities on id.

Link copied to clipboard
open suspend fun delete()

Deletes this event.

Link copied to clipboard

Requests to modify this event according to the specified builder.

Link copied to clipboard

Fetches this behavior as a GuildScheduledEvent.

Link copied to clipboard

Fetches this behavior as a GuildScheduledEvent, returns null if the event isn't present.

Link copied to clipboard
inline suspend fun <T : TopGuildChannel> getChannelOfOrNull(): T?

Requests the channel this event will be hosted in, if it is of type T, returns null if entityType is External, the channel is not present or not of type T.

Link copied to clipboard

Requests the TopGuildChannel this event will be hosted in, returns null if the TopGuildChannel isn't present or entityType is External.

Link copied to clipboard
suspend fun getGuild(): Guild

Requests the Guild this event belongs to.

Link copied to clipboard
suspend fun getGuildOrNull(): Guild?

Requests the Guild this event belongs to, returns null if the Guild isn't present.

Link copied to clipboard
open fun getMembersAfter(after: Snowflake, limit: Int? = null): Flow<Member>
Link copied to clipboard
open fun getMembersBefore(before: Snowflake, limit: Int? = null): Flow<Member>
Link copied to clipboard
open fun getUsersAfter(after: Snowflake, limit: Int? = null): Flow<User>
Link copied to clipboard
open fun getUsersBefore(before: Snowflake, limit: Int? = null): Flow<User>
Link copied to clipboard
open override fun withStrategy(strategy: EntitySupplyStrategy<*>): Strategizable

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