PlayerJSON

The JSON representation of the player.

Signature

export interface PlayerJSON

Properties

guildId: string;

The guild id of the player.

@type{string}
volume: number;

The volume of the player.

@type{number}
selfDeaf: boolean;

The self deaf state of the player.

@type{boolean}
selfMute: boolean;

The self mute state of the player.

@type{boolean}
paused: boolean;

The paused state of the player.

@type{boolean}
playing: boolean;

The playing state of the player.

@type{boolean}
voiceId?: string;

The voice channel id of the player.

@type{string}
textId?: string;

The text channel id of the player.

@type{string | undefined}
lastPosition: number;

The last position received from Lavalink.

@type{number}
lastPositionUpdate: number | null;

The timestamp when the last position change update happened.

@type{number | null}
position: number;

The current calculated position of the player.

@type{number}
createdTimestamp: number;

The timestamp when the player was created.

@type{number}
ping: number;

The ping of the player.

@type{number}