Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const { SlashCommandBuilder } = require('discord.js');
- // ...
- module.exports = {
- data: new SlashCommandBuilder()
- .setName('opslaandb')
- .setDescription('Slaat een waarde op in de DB')
- .addStringOption(option =>
- option.setName('waarde')
- .setDescription('Tekst wat je wilt opslaan')
- .setRequired(true)),
- async execute(client, interaction) {
- const waardeStr = await interaction.options.getString('waarde');
- // ...
- await interaction.reply("Tekst opgeslagen");
- }
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement