Billy/commands/poll.js

20 lines
645 B
JavaScript
Raw Normal View History

2021-11-09 09:34:55 +01:00
const { SlashCommandBuilder, codeBlock } = require('@discordjs/builders');
2021-11-12 13:05:35 +01:00
const { userMention } = require("@discordjs/builders");
2021-11-09 09:34:55 +01:00
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');
},
};