force lowercase response names for case insensitiviy

This commit is contained in:
Baipyrus 2024-04-05 13:51:14 +02:00
parent 089ccade66
commit 272525ad9c

View File

@ -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} */