mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-16 19:43:29 +01:00
Fix documentation for VoiceBroadcast (play methods return BroadcastDispatcher not StreamDispatcher)
This commit is contained in:
@@ -40,7 +40,7 @@ class VoiceBroadcast extends EventEmitter {
|
|||||||
* Plays the given file in the voice connection.
|
* Plays the given file in the voice connection.
|
||||||
* @param {string} file The absolute path to the file
|
* @param {string} file The absolute path to the file
|
||||||
* @param {StreamOptions} [options] Options for playing the stream
|
* @param {StreamOptions} [options] Options for playing the stream
|
||||||
* @returns {StreamDispatcher}
|
* @returns {BroadcastDispatcher}
|
||||||
* @example
|
* @example
|
||||||
* // Play files natively
|
* // Play files natively
|
||||||
* voiceChannel.join()
|
* voiceChannel.join()
|
||||||
@@ -57,7 +57,7 @@ class VoiceBroadcast extends EventEmitter {
|
|||||||
* Plays an arbitrary input that can be [handled by ffmpeg](https://ffmpeg.org/ffmpeg-protocols.html#Description)
|
* Plays an arbitrary input that can be [handled by ffmpeg](https://ffmpeg.org/ffmpeg-protocols.html#Description)
|
||||||
* @param {string} input the arbitrary input
|
* @param {string} input the arbitrary input
|
||||||
* @param {StreamOptions} [options] Options for playing the stream
|
* @param {StreamOptions} [options] Options for playing the stream
|
||||||
* @returns {StreamDispatcher}
|
* @returns {BroadcastDispatcher}
|
||||||
*/
|
*/
|
||||||
playArbitraryInput(input, options) {
|
playArbitraryInput(input, options) {
|
||||||
return this.player.playUnknown(input, options);
|
return this.player.playUnknown(input, options);
|
||||||
@@ -67,7 +67,7 @@ class VoiceBroadcast extends EventEmitter {
|
|||||||
* Plays and converts an audio stream in the voice connection.
|
* Plays and converts an audio stream in the voice connection.
|
||||||
* @param {ReadableStream} stream The audio stream to play
|
* @param {ReadableStream} stream The audio stream to play
|
||||||
* @param {StreamOptions} [options] Options for playing the stream
|
* @param {StreamOptions} [options] Options for playing the stream
|
||||||
* @returns {StreamDispatcher}
|
* @returns {BroadcastDispatcher}
|
||||||
* @example
|
* @example
|
||||||
* // Play streams using ytdl-core
|
* // Play streams using ytdl-core
|
||||||
* const ytdl = require('ytdl-core');
|
* const ytdl = require('ytdl-core');
|
||||||
@@ -87,7 +87,7 @@ class VoiceBroadcast extends EventEmitter {
|
|||||||
* Plays a stream of 16-bit signed stereo PCM.
|
* Plays a stream of 16-bit signed stereo PCM.
|
||||||
* @param {ReadableStream} stream The audio stream to play
|
* @param {ReadableStream} stream The audio stream to play
|
||||||
* @param {StreamOptions} [options] Options for playing the stream
|
* @param {StreamOptions} [options] Options for playing the stream
|
||||||
* @returns {StreamDispatcher}
|
* @returns {BroadcastDispatcher}
|
||||||
*/
|
*/
|
||||||
playConvertedStream(stream, options) {
|
playConvertedStream(stream, options) {
|
||||||
return this.player.playPCMStream(stream, options);
|
return this.player.playPCMStream(stream, options);
|
||||||
@@ -98,7 +98,7 @@ class VoiceBroadcast extends EventEmitter {
|
|||||||
* <warn>Note that inline volume is not compatible with this method.</warn>
|
* <warn>Note that inline volume is not compatible with this method.</warn>
|
||||||
* @param {ReadableStream} stream The Opus audio stream to play
|
* @param {ReadableStream} stream The Opus audio stream to play
|
||||||
* @param {StreamOptions} [options] Options for playing the stream
|
* @param {StreamOptions} [options] Options for playing the stream
|
||||||
* @returns {StreamDispatcher}
|
* @returns {BroadcastDispatcher}
|
||||||
*/
|
*/
|
||||||
playOpusStream(stream, options) {
|
playOpusStream(stream, options) {
|
||||||
return this.player.playOpusStream(stream, options);
|
return this.player.playOpusStream(stream, options);
|
||||||
|
|||||||
Reference in New Issue
Block a user