add resolveQueue method
This commit is contained in:
parent
4c93c39ec7
commit
1a5e4cf2b8
1 changed files with 9 additions and 0 deletions
|
@ -487,6 +487,15 @@ class Player extends EventEmitter<PlayerEvents> {
|
||||||
return generateDependencyReport();
|
return generateDependencyReport();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Resolves qeuue
|
||||||
|
* @param {GuildResolvable|Queue} queueLike Queue like object
|
||||||
|
* @returns {Queue}
|
||||||
|
*/
|
||||||
|
resolveQueue<T>(queueLike: GuildResolvable | Queue): Queue<T> {
|
||||||
|
return this.getQueue(queueLike instanceof Queue ? queueLike.guild : queueLike);
|
||||||
|
}
|
||||||
|
|
||||||
*[Symbol.iterator]() {
|
*[Symbol.iterator]() {
|
||||||
yield* Array.from(this.queues.values());
|
yield* Array.from(this.queues.values());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue