From e801d2cd7af6f6e5bbc72d114dbcafd6a882ddf4 Mon Sep 17 00:00:00 2001 From: Daniel Odendahl Jr Date: Mon, 10 Jul 2017 22:58:23 +0000 Subject: [PATCH] Show All of the First Paragraph --- commands/search/wikia.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/search/wikia.js b/commands/search/wikia.js index 0f94cedb..f8306a09 100644 --- a/commands/search/wikia.js +++ b/commands/search/wikia.js @@ -44,7 +44,7 @@ module.exports = class WikiaCommand extends Command { .setTitle(body.sections[0].title) .setURL(search.body.items[0].url) .setAuthor('Wikia', 'https://i.imgur.com/WzXWJka.png') - .setDescription(body.sections[0].content[0].text) + .setDescription(body.sections[0].content.map((i) => i.text).join('\n\n').substr(0, 2000)) .setThumbnail(body.sections[0].images[0]); return msg.embed(embed); } catch (err) {