respond to modalSubmit event

This commit is contained in:
Baipyrus 2024-04-05 10:52:53 +02:00
parent fb17c4d10b
commit 2586ffb155

View File

@ -386,6 +386,12 @@ export async function modalSubmit(interaction) {
// Create new response data with keyword attached
await Responses.create({ keyword: found.id, name, response });
// Reply with success
await interaction.reply({
content: `Successfully registered '${name}' as response to '${keyword}'!`,
ephemeral: true
});
}
/** @param {AutocompleteInteraction} interaction */
export async function autocomplete(interaction) {