Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const { SlashCommandBuilder } = require('@discordjs/builders');
- const { ActionRowBuilder, ModalBuilder, TextInputBuilder, TextInputStyle } = require('discord.js');
- module.exports = {
- data: new SlashCommandBuilder()
- .setName('suggest')
- .setDescription('Send a suggestion to the developers'),
- help: {
- name: "Suggest",
- description: "Send a suggestion to the developers",
- },
- async execute(client, interaction) {
- const modal = new ModalBuilder()
- .setCustomId('suggestion')
- .setTitle('Suggesion');
- const title = new TextInputBuilder()
- .setCustomId('title')
- .setLabel("Title")
- .setStyle(TextInputStyle.Short);
- const description = new TextInputBuilder()
- .setCustomId('description')
- .setLabel("Description")
- .setStyle(TextInputStyle.Long);
- const titleRow = new ActionRowBuilder().addComponents(favoriteColorInput);
- const secondActionRow = new ActionRowBuilder().addComponents(hobbiesInput);
- modal.addComponents(firstActionRow, secondActionRow);
- await interaction.showModal(modal);
- },
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement