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:
Schuyler Cebulskie
2017-02-25 15:29:32 -05:00
parent 18bcd2f7e2
commit f3a7f59824
7 changed files with 27 additions and 20 deletions

View File

@@ -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() {