mirror of
https://github.com/Hessenuk/DiscordTickets.git
synced 2024-12-22 15:53:08 +02:00
Update panel.js (#334)
This commit is contained in:
parent
2e2350806d
commit
89bfa5b0f8
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user