mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-14 18:43:31 +01:00
Several improvements
- Rename Guild#updateChannelPositions -> setChannelPositions - Allow Guild#setChannelPositions to take ChannelResolvables - Prioritise ClientDataResolver#resolveChannel's string case - Minor cleanup
This commit is contained in:
@@ -55,7 +55,7 @@ class AudioPlayer extends EventEmitter {
|
||||
* @type {?StreamDispatcher}
|
||||
*/
|
||||
get currentDispatcher() {
|
||||
return (this.streams.last() || {}).dispatcher;
|
||||
return this.streams.size > 0 ? this.streams.last().dispatcher || null : null;
|
||||
}
|
||||
|
||||
destroy() {
|
||||
|
||||
Reference in New Issue
Block a user