voice: reimplement seek option (#2572)

This commit is contained in:
Amish Shah
2018-06-13 21:16:14 +01:00
parent 04618f554f
commit 1cdee7b48a
2 changed files with 4 additions and 1 deletions

View File

@@ -6,7 +6,7 @@ const { Error } = require('../../../errors');
* Options that can be passed to stream-playing methods:
* @typedef {Object} StreamOptions
* @property {StreamType} [type='unknown'] The type of stream.
* @property {number} [seek=0] The time to seek to
* @property {number} [seek=0] The time to seek to, will be ignored when playing `ogg/opus` or `webm/opus` streams
* @property {number|boolean} [volume=1] The volume to play at. Set this to false to disable volume transforms for
* this stream to improve performance.
* @property {number} [passes=1] How many times to send the voice packet to reduce packet loss