symbol -> company.symbol

This commit is contained in:
Dragon Fire
2020-03-13 10:38:32 -04:00
parent 5476b19417
commit 8e6e01ddf4
+1 -1
View File
@@ -50,7 +50,7 @@ module.exports = class StocksCommand extends Command {
if (body['Error Message']) return msg.say('Could not find any results.');
const data = Object.values(body['Time Series (1min)'])[0];
const embed = new MessageEmbed()
.setTitle(`Stocks for ${company.name} (${symbol.toUpperCase()})`)
.setTitle(`Stocks for ${company.name} (${company.symbol.toUpperCase()})`)
.setColor(0x9797FF)
.setFooter('Last Updated')
.setTimestamp(new Date(body['Meta Data']['3. Last Refreshed']))