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

@@ -23,7 +23,7 @@ module.exports = {
var feedArray = libCore.getFeeds(category);
var i = Math.floor(Math.random() * (feedArray.length - 0) + 0);
await message.reply(`**Retrieved**: [${category}](${feedArray[i].link})`);
await interaction.reply(`**Retrieved**: [${category}](${feedArray[i].link})`);
} catch (err) {
log.ERROR(err)
//await interaction.reply(err.toString());

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());