From 4373ede855333f209676551162a525238656e1f8 Mon Sep 17 00:00:00 2001 From: GramingFoxTeam Date: Mon, 20 Mar 2023 21:33:01 +0300 Subject: [PATCH] fix: fix deprecation --- bots/discord/commands/trainMessage.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bots/discord/commands/trainMessage.js b/bots/discord/commands/trainMessage.js index 668702b..02d9c5e 100644 --- a/bots/discord/commands/trainMessage.js +++ b/bots/discord/commands/trainMessage.js @@ -2,7 +2,7 @@ import { ContextMenuCommandBuilder, ApplicationCommandType, ActionRowBuilder, - SelectMenuBuilder, + StringSelectMenuBuilder, ComponentType } from 'discord.js'; @@ -31,7 +31,7 @@ export default { } const row = new ActionRowBuilder().addComponents( - new SelectMenuBuilder() + new StringSelectMenuBuilder() .setCustomId('select') .setPlaceholder('Nothing selected') .addOptions(options)