diff --git a/src/Player.ts b/src/Player.ts index de7b484..106aa0b 100644 --- a/src/Player.ts +++ b/src/Player.ts @@ -487,6 +487,15 @@ class Player extends EventEmitter { return generateDependencyReport(); } + /** + * Resolves qeuue + * @param {GuildResolvable|Queue} queueLike Queue like object + * @returns {Queue} + */ + resolveQueue(queueLike: GuildResolvable | Queue): Queue { + return this.getQueue(queueLike instanceof Queue ? queueLike.guild : queueLike); + } + *[Symbol.iterator]() { yield* Array.from(this.queues.values()); }