diff --git a/commands/random.js b/commands/random.js index 4146711..d8dcc11 100644 --- a/commands/random.js +++ b/commands/random.js @@ -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()); diff --git a/commands/slang.js b/commands/slang.js index 9babaa6..38a18d5 100644 --- a/commands/slang.js +++ b/commands/slang.js @@ -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());