const { SlashCommandBuilder, codeBlock } = require('@discordjs/builders'); module.exports = { data: new SlashCommandBuilder() .setName('poll') .setDescription('Sondage') .addStringOption(option => option.setName('question') .setDescription('La question que vous souhaitez poser aux autres utilisateurs') .setRequired(true) ), async execute(interaction) { const question = interaction.options.get('question').value; const textReply = ""; console.log(question); await interaction.reply('Sondage'); }, };