Update object name message to interaction

This commit is contained in:
Logan Cusano
2023-02-25 14:03:31 -05:00
parent 588db52dfd
commit e157fc94e0
2 changed files with 2 additions and 2 deletions

View File

@@ -20,7 +20,7 @@ module.exports = {
var question = encodeURIComponent(interaction.options.getString('phrase').join(" "));
var slangData = await libCore.getSlang(question);
await message.reply(`**Term**: ${decodeURIComponent(question)}\n\n**Answer**: ${slangData.definition}\n\n**Example**: ${slangData.example}`);
await interaction.reply(`**Term**: ${decodeURIComponent(question)}\n\n**Answer**: ${slangData.definition}\n\n**Example**: ${slangData.example}`);
}catch(err){
log.ERROR(err)
//await interaction.reply(err.toString());