From 981c8ce7c1fba3fbe88a25f71f165f3088325266 Mon Sep 17 00:00:00 2001 From: Marius Begby Date: Mon, 10 Jul 2023 16:18:45 +0200 Subject: [PATCH] fix: Set max queue and history size --- commands/play.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/commands/play.js b/commands/play.js index f8ef997..00fb7d7 100644 --- a/commands/play.js +++ b/commands/play.js @@ -1,5 +1,5 @@ const { SlashCommandBuilder } = require('@discordjs/builders'); -const { useMainPlayer, useQueue } = require('discord-player'); +const { useMainPlayer } = require('discord-player'); const { EmbedBuilder } = require('discord.js'); const { embedColors } = require('../config.json'); @@ -52,7 +52,9 @@ module.exports = { nodeOptions: { leaveOnEmptyCooldown: 60000, leaveOnEndCooldown: 60000, - leaveOnStopCooldown: 60000 + leaveOnStopCooldown: 60000, + maxSize: 10000, + maxHistorySize: 100 } } );