Pragati
Pragati
DIAdiscord.js - Imagine an app
Created by Pragati on 8/6/2024 in #djs-questions
Error [InteractionAlreadyReplied]: The reply to this interaction has already been sent or deferred.
whole file where interaction is being replied has this issue. what to do?
8 replies
DIAdiscord.js - Imagine an app
Created by Pragati on 8/5/2024 in #djs-questions
Discord-Modals Error
Error - data.components[0].components[BASE_TYPE_BAD_LENGTH]: Must be between 1 and 5 in length. case 'permit': const permitModal = new ModalBuilder() .setCustomId('permitModal') .setTitle('Permit User or Role') .addComponents( new TextInputBuilder() .setCustomId('permitInput') .setLabel('User or Role Name') .setStyle(TextInputStyle.Short) .setMinLength(1) .setMaxLength(5) ); await interaction.showModal(permitModal); break; case 'restrict': const restrictModal = new ModalBuilder() .setCustomId('restrictModal') .setTitle('Restrict User or Role') .addComponents( new TextInputBuilder() .setCustomId('restrictInput') .setLabel('User or Role Name') .setStyle(TextInputStyle.Short) .setMinLength(1) .setMaxLength(5) ); await interaction.showModal(restrictModal); break;
5 replies