generated from Baipyrus/DiscordJS-Template
force lowercase response names for case insensitiviy
This commit is contained in:
parent
089ccade66
commit
272525ad9c
@ -494,9 +494,9 @@ export async function modalSubmit(interaction) {
|
|||||||
const { fields } = interaction;
|
const { fields } = interaction;
|
||||||
|
|
||||||
// Get text inputs from modal
|
// Get text inputs from modal
|
||||||
const name = fields.getTextInputValue('name');
|
|
||||||
const keyword = fields.getTextInputValue('keyword');
|
const keyword = fields.getTextInputValue('keyword');
|
||||||
const response = fields.getTextInputValue('response');
|
const response = fields.getTextInputValue('response');
|
||||||
|
const name = fields.getTextInputValue('name').toLowerCase();
|
||||||
|
|
||||||
// Get id of keyword
|
// Get id of keyword
|
||||||
/** @type {import('../../models/keywords.js').Keyword} */
|
/** @type {import('../../models/keywords.js').Keyword} */
|
||||||
|
Loading…
Reference in New Issue
Block a user