Presence

class Presence(val data: PresenceData, val kord: Kord, val supplier: EntitySupplier = kord.defaultSupplier) : KordObject, Strategizable(source)

Constructors

Link copied to clipboard
constructor(data: PresenceData, 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
open override val kord: Kord

The kord instance that created this object.

Link copied to clipboard
Link copied to clipboard
open override val supplier: EntitySupplier

The supplier used to request entities.

Link copied to clipboard

Functions

Link copied to clipboard
suspend fun getUser(): User

Requests to get the user of this presence.

Link copied to clipboard
suspend fun getUserOrNull(): User?

Requests to get the user of this presence, returns null if the User isn't present.

Link copied to clipboard
open override fun toString(): String
Link copied to clipboard
open override fun withStrategy(strategy: EntitySupplyStrategy<*>): Presence

Returns a new Presence with the given strategy.