This commit is contained in:
Snowflake107 2021-05-09 22:02:01 +05:45
parent 18e64801e8
commit 3582f1c2ad

View file

@ -1091,6 +1091,13 @@ export class Player extends EventEmitter {
return queue;
}
/**
* Internal method used to create queue
* @param {DiscordMessage} message The message
* @param {Track} track The track
* @returns {Promise<Queue>}
* @private
*/
private _createQueue(message: Message, track: Track): Promise<Queue> {
return new Promise((resolve) => {
const channel = message.member.voice ? message.member.voice.channel : null;