Skip to content

$oldState

$oldState holds data for the user voice state before it was updated (voiceStateUpdate event).

Usage

$oldState[option]

Parameters

FieldTypeDescriptionRequired
optionstringOption to retrieve.true

Options

OptionsTypeDescription
deafbooleanReturns whether this member is either self-deafened or server-deafened
mutebooleanReturns whether this member is either self-muted or server-muted
guildIdnumberReturns guild ID