🔥 ⚠️ Remove setQueue method
This commit is contained in:
parent
88e9419350
commit
07e07f0d63
1 changed files with 0 additions and 18 deletions
|
@ -285,24 +285,6 @@ class Player {
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Set the queue for a guild.
|
|
||||||
* @param {Discord.Snowflake} guildID The ID of the guild where the queue should be set
|
|
||||||
* @param {Track[]} tracks The tracks list
|
|
||||||
* @returns {Promise<Queue>} The new queue
|
|
||||||
*/
|
|
||||||
setQueue (guildID, tracks) {
|
|
||||||
return new Promise((resolve, reject) => {
|
|
||||||
// Get guild queue
|
|
||||||
const queue = this.queues.find((g) => g.guildID === guildID)
|
|
||||||
if (!queue) return reject(new Error('Not playing'))
|
|
||||||
// Update queue
|
|
||||||
queue.tracks = tracks
|
|
||||||
// Resolve the queue
|
|
||||||
resolve(queue)
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Clear the guild queue, except the current track
|
* Clear the guild queue, except the current track
|
||||||
* @param {Discord.Snowflake} guildID The ID of the guild where the queue should be cleared
|
* @param {Discord.Snowflake} guildID The ID of the guild where the queue should be cleared
|
||||||
|
|
Loading…
Reference in a new issue