mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-12 17:43:30 +01:00
handle string ffmpeg input (#2064)
* handle string ffmpeg input * rename stuff for new purpose * file prefix isn't needed * pass tests * remove dumb spaces in dispatcher docs
This commit is contained in:
@@ -457,7 +457,7 @@ class VoiceConnection extends EventEmitter {
|
||||
* .catch(console.error);
|
||||
*/
|
||||
playFile(file, options) {
|
||||
return this.player.playUnknownStream(`file:${file}`, options);
|
||||
return this.player.playUnknown(file, options);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -467,7 +467,7 @@ class VoiceConnection extends EventEmitter {
|
||||
* @returns {StreamDispatcher}
|
||||
*/
|
||||
playArbitraryInput(input, options) {
|
||||
return this.player.playUnknownStream(input, options);
|
||||
return this.player.playUnknown(input, options);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -487,7 +487,7 @@ class VoiceConnection extends EventEmitter {
|
||||
* .catch(console.error);
|
||||
*/
|
||||
playStream(stream, options) {
|
||||
return this.player.playUnknownStream(stream, options);
|
||||
return this.player.playUnknown(stream, options);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user