VoiceStateImpl

class VoiceStateImpl(val yde: YDE, val json: JsonNode, backupGuild: Guild? = null) : VoiceState(source)

Constructors

Link copied to clipboard
constructor(yde: YDE, json: JsonNode, backupGuild: Guild? = null)

Types

Link copied to clipboard
class VoiceRegionImpl(val yde: YDE, val json: JsonNode, val idAsLong: Long) : VoiceState.VoiceRegion

Functions

Link copied to clipboard
open suspend fun requestVoiceRegion(): CompletableDeferred<List<VoiceState.VoiceRegion>>

Requests the voice region of this voice state.

Link copied to clipboard
open override fun toString(): String

Converts this entity to a string using the io.github.ydwk.ydwk.util.EntityToStringBuilder.

Properties

Link copied to clipboard
open override val channel: GuildVoiceChannel?

The channel this voice state is for.

Link copied to clipboard
open override val guild: Guild?

The guild this voice state is for.

Link copied to clipboard
open override val isDeafened: Boolean

Whether this voice state is deafened.

Link copied to clipboard
open override val isMuted: Boolean

Whether this voice state is muted.

Link copied to clipboard
open override val isSelfDeafened: Boolean

Whether this voice state is self deafened.

Link copied to clipboard
open override val isSelfMuted: Boolean

Whether this voice state is self muted.

Link copied to clipboard
open override val isStreaming: Boolean

Whether this voice state is streaming.

Link copied to clipboard
open override val isSuppressed: Boolean

Whether this voice state is suppressed.

Link copied to clipboard
open override val json: JsonNode

The json representation of this entity.

Link copied to clipboard
open override val member: Member?

The guild member this voice state is for.

Link copied to clipboard
open override val requestToSpeakTimestamp: String?

The time at which the user requested to speak.

Link copied to clipboard
open override val sessionId: String

The session id of this voice state.

Link copied to clipboard
open override val user: User?

The user this voice state is for.

Link copied to clipboard
open override val yde: YDE

The main YDE instance.