Interface UpdatePlayer

interface UpdatePlayer {
    endTime?: null | number;
    filters?: PlayerFilters;
    paused?: boolean;
    position?: number;
    track?: UpdateTrack;
    voice?: PlayerVoiceState;
    volume?: number;
}

Properties

endTime?: null | number

The track end time in milliseconds (must be > 0). null resets this if it was set previously

filters?: PlayerFilters

The new filters to apply. This will override all previously applied filters

paused?: boolean

Whether the player is paused

position?: number

The track position in milliseconds

track?: UpdateTrack

The currently playing track

Information required for connecting to Discord

volume?: number

The player volume, in percentage, from 0 to 1000