mirror of
https://github.com/danbulant/discord.js
synced 2026-05-27 05:52:05 +00:00
Add AudioPlayer.currentDispatcher
This commit is contained in:
parent
a029999b09
commit
18bcd2f7e2
1 changed files with 9 additions and 1 deletions
|
|
@ -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() {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue