Player typedefs
playerOptions
| Parameter | Type | Description |
|---|---|---|
selfDeafen | boolean | If the player should deaf itself. |
selfMute | boolean | If the player should mute itself. |
node | string as NodeIdentifier | The node the Player uses. |
textChannel | string as GuildTextChannelID | The text channel the Player belongs to. |
volume | number | The initial volume the Player will use. |
voiceChannel | string as GuildVoiceChannelID | The voice channel the Player belongs to. |
guildId | string as GuildID | The guild ID the Player belongs to. |
playerStateUpdate
| Parameter | Type |
|---|---|
changeType | PlayerStateEventTypes |
details | PlayerStateUpdateDetails |
PlayerStateUpdateDetails
- AutoplayChangeEvent
- ConnectionChangeEvent
- RepeatChangeEvent
- PauseChangeEvent
- QueueChangeEvent
- TrackChangeEvent
- VolumeChangeEvent
- ChannelChangeEvent
| Parameter | Type |
|---|---|
changeType | "dynamic" | "track" | "queue" | null |
previousRepeat | boolean |
currentRepeat | boolean |
| Parameter | Type |
|---|---|
changeType | "add" | "remove" | "clear" | "shuffle" | "roundRobin" | "userBlock" | "autoPlayAdd" |
tracks | Track{} | UnresolvedTrack{} |