Fixed bug with NODE_ENV on tags

This commit is contained in:
TheEssem 2019-12-19 10:36:33 -06:00
parent 6c80d5f67c
commit 3e9d4164aa

View file

@ -49,7 +49,7 @@ exports.run = async (message, args) => {
"text": `Page ${i + 1} of ${groups.length}` "text": `Page ${i + 1} of ${groups.length}`
}, },
"description": value.join("\n"), "description": value.join("\n"),
"fields": [process.env.NODE_ENV === "development" ? {"name": "Note", "value": "Tags created in this version of esmBot will not carry over to the final release."} : null], "fields": process.env.NODE_ENV === "development" ? [{"name": "Note", "value": "Tags created in this version of esmBot will not carry over to the final release."}] : null,
"author": { "author": {
"name": message.author.username, "name": message.author.username,
"icon_url": message.author.avatarURL "icon_url": message.author.avatarURL