diff --git a/src/Player.ts b/src/Player.ts index 8b33207..841cdf6 100644 --- a/src/Player.ts +++ b/src/Player.ts @@ -21,7 +21,7 @@ class DiscordPlayer extends EventEmitter { if (this.queues.has(guild.id)) return this.queues.get(guild.id) as Queue; const queue = new Queue(this, guild, queueInitOptions); - queue.metadata = queueInitOptions.metadata; + if ("metadata" in queueInitOptions) queue.metadata = queueInitOptions.metadata; this.queues.set(guild.id, queue); return queue as Queue;