Skip to content

Commit

Permalink
Merge pull request #93 from Dacaly/patch-1
Browse files Browse the repository at this point in the history
Choose to put a description
  • Loading branch information
Sayrix authored Jan 7, 2023
2 parents c85ef0d + d84c577 commit bfe8e4d
Showing 1 changed file with 11 additions and 12 deletions.
23 changes: 11 additions & 12 deletions events/interactionCreate.js
Original file line number Diff line number Diff line change
Expand Up @@ -151,23 +151,22 @@ module.exports = {

// Make a select menus of all tickets types

const row = new client.discord.ActionRowBuilder()
.addComponents(
const row = new client.discord.ActionRowBuilder().addComponents(
new client.discord.StringSelectMenuBuilder()
.setCustomId('selectTicketType')
.setCustomId("selectTicketType")
.setPlaceholder(client.locales.other.selectTicketTypePlaceholder)
.setMaxValues(1)
.addOptions(
client.config.ticketTypes.map(x => {
const a = {
label: x.name,
description: x.description,
value: x.codeName,
}
client.config.ticketTypes.map((x) => {
const a = {
label: x.name,
value: x.codeName,
};
if (x.description) a.description = x.description;
if (x.emoji) a.emoji = x.emoji;
return a
return a;
})
),
)
);

interaction.reply({
Expand Down Expand Up @@ -263,4 +262,4 @@ module.exports = {
}
};
},
};
};

0 comments on commit bfe8e4d

Please sign in to comment.