Class VoiceState<T>

Represents a guild member's voice state.

Type Parameters

Hierarchy

Constructors

Properties

_cachedChannel?: any
_cachedGuild?: any
_cachedMember?: any
_cachedUser?: any
channelID: null | string

The ID of the channel the user is connected to.

deaf: boolean

If the associated member is deafened.

guildID: string

The ID of the guild this voice state is a part of.

id: string
mute: boolean

If the associated member is muted.

requestToSpeakTimestamp: null | Date

The time at which the associated member requested to speak.

selfDeaf: boolean

If the associated member is self deafened.

selfMute: boolean

If the associated member is self muted.

selfStream: boolean

If the associated member is streaming.

selfVideo: boolean

If the associated member is has their camera on.

sessionID: string

The id of the associated member's voice session.

suppress: boolean

If the associated member is suppressed.

userID: string

The ID of the user associated with this voice state.

Accessors

  • get channel(): undefined | null | T
  • The channel the user is connected to.

    Returns undefined | null | T

  • get createdAt(): Date
  • Returns Date

  • get guild(): Guild
  • The guild this voice state is a part of. This will throw an error if the guild is not cached.

    Returns Guild

  • get member(): undefined | Member
  • The member associated with this voice state.

    Returns undefined | Member

  • get user(): undefined | User
  • TThe user associated with this voice state.

    Returns undefined | User

Methods

  • Returns string

  • Parameters

    Returns void

  • Parameters

    • Optional timestamp: number | Date

    Returns string

  • Parameters

    • id: string

    Returns Date

  • Parameters

    • id: string

    Returns number

Generated using TypeDoc