From 44c69ba058cf18734d28226de4d01eb20ed453cc Mon Sep 17 00:00:00 2001 From: Daniel Odendahl Jr Date: Sun, 2 Apr 2017 03:33:55 +0000 Subject: [PATCH] Falsey Check in urban --- commands/search/urban.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/search/urban.js b/commands/search/urban.js index fa3cb6bc..79184f38 100644 --- a/commands/search/urban.js +++ b/commands/search/urban.js @@ -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) {