convert input string to lowercase

master
Chloe Fontenot 🏳️‍⚧️ 2023-04-01 00:04:34 +07:00
parent 11396d8bb9
commit a96ae91f77
1 changed files with 1 additions and 1 deletions

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