mirror of
https://github.com/danbulant/discord.js
synced 2026-05-24 20:42:27 +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() {
|
||||
return this.streams.last().transcoder;
|
||||
return (this.streams.last() || {}).transcoder;
|
||||
}
|
||||
|
||||
/**
|
||||
* The current dispatcher
|
||||
* @type {?StreamDispatcher}
|
||||
*/
|
||||
get currentDispatcher() {
|
||||
return (this.streams.last() || {}).dispatcher;
|
||||
}
|
||||
|
||||
destroy() {
|
||||
|
|
|
|||
Loading…
Reference in a new issue