generated from Baipyrus/DiscordJS-Template
respond to modalSubmit event
This commit is contained in:
parent
fb17c4d10b
commit
2586ffb155
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user