Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface OutgoingPlayPayload

Hierarchy

Index

Properties

endTime?: number

Determines at the number of milliseconds at which point the track should stop playing. Helpful if you only want to play a snippet of a bigger track. By default the track plays until it's end as per the encoded data.

guildId: string

The guild's ID to identify the player.

noReplace?: boolean

If set to true, this operation will be ignored if a track is already playing or paused.

op: "play"
pause?: boolean

If set to true, the playback will be paused.

startTime?: number

Determines the number of milliseconds to offset the track by. Defaults to 0.

track: string

The track to be played.

Generated using TypeDoc