Closed StephenL13 closed 2 years ago
Modal Submit Interactions don't support a directly ephemeral reply.
Take the example from the readme:
const { Formatters } = require('discord.js');
client.on('modalSubmit', async (modal) => {
if(modal.customId === 'modal-customid'){
const firstResponse = modal.getTextInputValue('textinput-customid')
await modal.deferReply({ ephemeral: true })
modal.followUp({ content: 'Congrats! Powered by discord-modals.' + Formatters.codeBlock('markdown', firstResponse), ephemeral: true })
}
});
Sorry for the late reply, but thanks for this. Will look forward somehow to fix this on my end.
Greetings. Currently, I'm attempting to create modals for my server's verification gate system. However, I'm having technical problems whenever I want to notify the user privately once they submit the answers through the modal. Right now, I ran the interaction command at a private admin channel. Is there any further way to resolve this? Thank you.
Portion of code:
Slash command
Screenshot: