Skip to content

Commit

Permalink
Update panel.js (discord-tickets#334)
Browse files Browse the repository at this point in the history
  • Loading branch information
M4rlus authored Sep 7, 2022
1 parent 2e23508 commit 89bfa5b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/commands/panel.js
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 89bfa5b

Please sign in to comment.