diff --git a/src/commands/settings.ts b/src/commands/settings.ts new file mode 100644 index 0000000..8166415 --- /dev/null +++ b/src/commands/settings.ts @@ -0,0 +1,42 @@ +import { SlashCommandBuilder } from '@discordjs/builders'; +const { MessageActionRow, MessageSelectMenu } = require('discord.js'); +import { CommandInteraction, MessageEmbed } from 'discord.js'; + +import log from '../helpers/log'; + +export const data = new SlashCommandBuilder() + .setName('settings') + .setDescription('BETA - settings configuration'); + + +export async function execute(interaction : CommandInteraction) { + await interaction.deferReply(); + const settingsEmbed = new MessageEmbed() + .setColor('#ffffff'); + + const user = interaction.options.getUser('user') || interaction.user; + + settingsEmbed + .setAuthor({ name: user.tag, iconURL: user.displayAvatarURL() }) + .setDescription(`a`); + const menu = 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.followUp({ embeds: [settingsEmbed] }); + +} \ No newline at end of file