Update panel.js (#334)

This commit is contained in:
Marius 2022-09-08 01:35:03 +02:00 committed by GitHub
parent 2e2350806d
commit 89bfa5b0f8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -176,7 +176,7 @@ module.exports = class PanelCommand extends Command {
this.client.log.info(`${interaction.user.tag} has created a new button panel`); this.client.log.info(`${interaction.user.tag} has created a new button panel`);
} else { } else {
// multi category // 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({ await panel_channel.send({
components: [ components: [
new MessageActionRow() new MessageActionRow()