20 lines
645 B
JavaScript
20 lines
645 B
JavaScript
const { SlashCommandBuilder, codeBlock } = require('@discordjs/builders');
|
|
const { userMention } = 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');
|
|
},
|
|
};
|