From 89bfa5b0f88a349b1bab049e3f81b120557060e9 Mon Sep 17 00:00:00 2001 From: Marius <43551856+M4rlus@users.noreply.github.com> Date: Thu, 8 Sep 2022 01:35:03 +0200 Subject: [PATCH] Update panel.js (#334) --- src/commands/panel.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands/panel.js b/src/commands/panel.js index 03ef9ae..bb87619 100644 --- a/src/commands/panel.js +++ b/src/commands/panel.js @@ -176,7 +176,7 @@ module.exports = class PanelCommand extends Command { this.client.log.info(`${interaction.user.tag} has created a new button panel`); } else { // multi category - const rows = await this.client.db.models.Category.findAll({ where: { guild: interaction.guild.id } }); + const rows = (await this.client.db.models.Category.findAll({ where: { guild: interaction.guild.id } })).filter(row => categories.includes(row.id)); await panel_channel.send({ components: [ new MessageActionRow()