mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
Add AudioPlayer.currentDispatcher
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user