diff --git a/commands/misc/document.js b/commands/misc/document.js index 1397b69..bba9638 100644 --- a/commands/misc/document.js +++ b/commands/misc/document.js @@ -1,4 +1,4 @@ -const { SlashCommandBuilder, SelectMenuBuilder, ActionRowBuilder } = require('discord.js'); +const { SlashCommandBuilder, StringSelectMenuBuilder, ActionRowBuilder } = require('discord.js'); module.exports = { data: new SlashCommandBuilder() @@ -21,7 +21,7 @@ module.exports = { const sanctionembedrow = new ActionRowBuilder() .addComponents( - new SelectMenuBuilder() + new StringSelectMenuBuilder() .setCustomId('document_sanctions') .setPlaceholder('Navigateur') .addOptions([ diff --git a/commands/setup/setup.js b/commands/setup/setup.js index fc846d7..a7ee954 100644 --- a/commands/setup/setup.js +++ b/commands/setup/setup.js @@ -1,4 +1,4 @@ -const { SlashCommandBuilder, EmbedBuilder, ButtonBuilder, ActionRowBuilder, SelectMenuBuilder, ChannelType } = require('discord.js'); +const { SlashCommandBuilder, EmbedBuilder, ButtonBuilder, ActionRowBuilder, StringSelectMenuBuilder, ChannelType } = require('discord.js'); const SetupTickets = require('./setupcommands/tickets.js'); const SetupPanel = require('./setupcommands/panels.js'); const SetupMod = require('./setupcommands/moderation.js'); diff --git a/commands/setup/setupcommands/panels.js b/commands/setup/setupcommands/panels.js index 69b38a5..ffa7903 100644 --- a/commands/setup/setupcommands/panels.js +++ b/commands/setup/setupcommands/panels.js @@ -1,4 +1,4 @@ -const { ButtonStyle, EmbedBuilder, SelectMenuBuilder, ActionRowBuilder, ButtonBuilder } = require('discord.js') +const { ButtonStyle, EmbedBuilder, StringSelectMenuBuilder, ActionRowBuilder, ButtonBuilder } = require('discord.js') module.exports = { async execute(interaction, client) { @@ -151,7 +151,7 @@ module.exports = { const sanctionembedrow = new ActionRowBuilder() .addComponents( - new SelectMenuBuilder() + new StringSelectMenuBuilder() .setCustomId('document_sanctions') .setPlaceholder('Navigateur') .addOptions([ @@ -195,7 +195,7 @@ const sanctionembedrow = new ActionRowBuilder() const albumphotoembedrow = new ActionRowBuilder() .addComponents( - new SelectMenuBuilder() + new StringSelectMenuBuilder() .setCustomId('document_albumphoto') .setPlaceholder('Navigateur') .addOptions([ diff --git a/commands/setup/setupcommands/tickets.js b/commands/setup/setupcommands/tickets.js index bee8d6a..ed44409 100644 --- a/commands/setup/setupcommands/tickets.js +++ b/commands/setup/setupcommands/tickets.js @@ -1,4 +1,4 @@ -const { EmbedBuilder, SelectMenuBuilder, ActionRowBuilder, ButtonBuilder, ButtonStyle } = require('discord.js') +const { EmbedBuilder, StringSelectMenuBuilder, ActionRowBuilder, ButtonBuilder, ButtonStyle } = require('discord.js') module.exports = { async execute(interaction, client) { @@ -50,7 +50,7 @@ const ticketgraphismtyperow = new ActionRowBuilder() const ticketsupportRow = new ActionRowBuilder() .addComponents( - new SelectMenuBuilder() + new StringSelectMenuBuilder() .setCustomId('ticket_create-support') .setPlaceholder('Choisissez le type de ticket que vous voulez !') .addOptions([ diff --git a/interactions/buttons/src/rolereact/getrole.js b/interactions/buttons/src/rolereact/getrole.js index 719950c..8abcb7b 100644 --- a/interactions/buttons/src/rolereact/getrole.js +++ b/interactions/buttons/src/rolereact/getrole.js @@ -1,4 +1,4 @@ -const { EmbedBuilder, ActionRowBuilder, SelectMenuBuilder, ButtonBuilder, ButtonStyle } = require('discord.js'); +const { EmbedBuilder, ActionRowBuilder, StringSelectMenuBuilder, ButtonBuilder, ButtonStyle } = require('discord.js'); module.exports = { async execute(interaction) { @@ -212,7 +212,7 @@ const notifroles = [ const rolegenrerow = new ActionRowBuilder() .addComponents( - new SelectMenuBuilder() + new StringSelectMenuBuilder() .setCustomId('roleselect_genre') .setPlaceholder('Choisissez votre pronom / Choose your pronoun') .addOptions([ @@ -236,7 +236,7 @@ const rolegenrerow = new ActionRowBuilder() const rolecolorrow = new ActionRowBuilder() .addComponents( - new SelectMenuBuilder() + new StringSelectMenuBuilder() .setCustomId('roleselect_color') .setPlaceholder('Choisissez une couleur / Choose a color') .addOptions([ @@ -279,7 +279,7 @@ const rolecolorrow = new ActionRowBuilder() ); const rolehobbiesrow = new ActionRowBuilder() .addComponents( - new SelectMenuBuilder() + new StringSelectMenuBuilder() .setCustomId('roleselect_hobbies') .setPlaceholder('Choisissez vos hobbies / Choose your hobbies') .setMaxValues(8) @@ -328,7 +328,7 @@ const rolehobbiesrow = new ActionRowBuilder() ); const rolepingsrow = new ActionRowBuilder() .addComponents( - new SelectMenuBuilder() + new StringSelectMenuBuilder() .setCustomId('roleselect_pings') .setPlaceholder('Choisissez vos notifications / Choose your pings') .setMaxValues(7) diff --git a/interactions/buttons/src/ticket/ticketopener.js b/interactions/buttons/src/ticket/ticketopener.js index cec8c4c..57ba7a4 100644 --- a/interactions/buttons/src/ticket/ticketopener.js +++ b/interactions/buttons/src/ticket/ticketopener.js @@ -1,11 +1,11 @@ -const { ActionRowBuilder, SelectMenuBuilder } = require('discord.js') +const { ActionRowBuilder, StringSelectMenuBuilder } = require('discord.js') module.exports = { async execute(interaction) { await interaction.deferReply({ ephemeral: true }); const ticketgraphismtyperow2 = new ActionRowBuilder() .addComponents( - new SelectMenuBuilder() + new StringSelectMenuBuilder() .setCustomId(`ticket_create-graphism-${interaction.customId.replace('ticketopener_', '')}`) .setPlaceholder('Choisissez le type de graphisme.') .addOptions([