const { MessageActionRow, MessageSelectMenu } = require('discord.js'); client.on('interactionCreate', async interaction => { if (!interaction.isCommand()) return; if (interaction.commandName === 'test') { const row = new MessageActionRow() .addComponents( new MessageSelectMenu() .setCustomId('select') .setPlaceholder('Nothing selected') .addOptions([ { label: 'Select me', description: 'This is a description', value: 'first_option', }, { label: 'You can select me too', description: 'This is also a description', value: 'second_option', }, ]), ); await interaction.reply({ content: 'Pong!', components: [row] }); } });