This commit is contained in:
Dragon Fire
2021-04-04 20:10:36 -04:00
parent 48cf20a9b6
commit e6c39d31bf
+2 -2
View File
@@ -44,8 +44,8 @@ module.exports = class StrainCommand extends Command {
.setURL(`https://www.leafly.com/strains/${strain.slug}`)
.setFooter(strain.subtitle)
.addField(' Effects', effects.map(effect => effect.name))
.addField(' Phenotype', data.phenotype, true)
.addField(' Rating', `${formatNumber(data.averageRating)}`, true);
.addField(' Phenotype', strain.phenotype, true)
.addField(' Rating', `${formatNumber(strain.averageRating)}`, true);
return msg.embed(embed);
} catch (err) {
return msg.reply(`Oh no, an error occurred: \`${err.message}\`. Try again later!`);