Falsey Check in urban

This commit is contained in:
Daniel Odendahl Jr
2017-04-02 03:33:55 +00:00
parent 49c3f8204f
commit 44c69ba058
+1 -1
View File
@@ -42,7 +42,7 @@ module.exports = class UrbanDictionary extends commando.Command {
.setTitle(response.body.list[0].word)
.setDescription(`${response.body.list[0].definition.substr(0, 1900)} [Read the Rest Here!](${response.body.list[0].permalink})`)
.addField('**Example:**',
response.body.list[0].example.substr(0, 1900));
response.body.list[0].example.substr(0, 1900) || 'None');
return message.embed(embed);
}
catch (err) {