mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-13 18:13:29 +01:00
Add AudioPlayer.currentDispatcher
This commit is contained in:
@@ -47,7 +47,15 @@ class AudioPlayer extends EventEmitter {
|
|||||||
}
|
}
|
||||||
|
|
||||||
get currentTranscoder() {
|
get currentTranscoder() {
|
||||||
return this.streams.last().transcoder;
|
return (this.streams.last() || {}).transcoder;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The current dispatcher
|
||||||
|
* @type {?StreamDispatcher}
|
||||||
|
*/
|
||||||
|
get currentDispatcher() {
|
||||||
|
return (this.streams.last() || {}).dispatcher;
|
||||||
}
|
}
|
||||||
|
|
||||||
destroy() {
|
destroy() {
|
||||||
|
|||||||
Reference in New Issue
Block a user