fix queueInitOptions being undefined
This commit is contained in:
parent
c925ca442e
commit
1d88db1711
1 changed files with 1 additions and 1 deletions
|
@ -125,7 +125,7 @@ class Player extends EventEmitter<PlayerEvents> {
|
|||
* @param {PlayerOptions} queueInitOptions Queue init options
|
||||
* @returns {Queue}
|
||||
*/
|
||||
createQueue<T = unknown>(guild: GuildResolvable, queueInitOptions?: PlayerOptions & { metadata?: T }): Queue<T> {
|
||||
createQueue<T = unknown>(guild: GuildResolvable, queueInitOptions: PlayerOptions & { metadata?: T } = {}): Queue<T> {
|
||||
guild = this.client.guilds.resolve(guild);
|
||||
if (!guild) throw new Error("Unknown Guild");
|
||||
if (this.queues.has(guild.id)) return this.queues.get(guild.id) as Queue<T>;
|
||||
|
|
Loading…
Reference in a new issue