Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const { Client, MessageActionRow, Modal, TextInputComponent, showModal } = require('discord.js');
- module.exports = async (client) => {
- client.on("interactionCreate", async (interaction) => {
- if (interaction.isButton()) {
- if (interaction.customId = 'shanklyButton') {
- const modal = new modal()
- .setCustomId('shanklyModal')
- .setTitle('Sugiere algo')
- .addComponents([
- new TextInputComponent()
- .setCustomId('shanklyinputModal')
- .setLabel('Escribe el error/bug a reportar')
- .setStyle('LONG')
- .setMinLength(1)
- .setMaxLength(4000)
- .setPlaceholder('ej: el bot esta enviando mensajes duplicados')
- .setRequired(true),
- ])
- }
- }
- await interaction.showModal(shanklyModal, { client, interaction })
- })
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement