convert input string to lowercase

This commit is contained in:
Chloe Fontenot 🏳️‍⚧️ 2023-04-01 00:04:34 -05:00
parent c45fa88419
commit 70d419d50e

View File

@ -19,7 +19,7 @@ module.exports = {
.setRequired(true)
),
async execute(interaction) {
var abbreviation = interaction.options.toLowerCase().getString('abbreviation');
var abbreviation = interaction.options.getString('abbreviation').toLowerCase();
var phrase = interaction.options.getString('phrase');
await interaction.reply('Adding abbreviation `' + abbreviation + "` to target list. This will complete to the phrase `" + phrase + "`");
addPhrase(abbreviation, phrase);