From 2d29d386c14b1a046dbf440a6edb4abbf49401a9 Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Fri, 27 Jul 2018 11:08:08 -0400 Subject: [PATCH] WHY DOES THIS API SUCC --- commands/search/eshop.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/commands/search/eshop.js b/commands/search/eshop.js index 498cd24b..ff545c76 100644 --- a/commands/search/eshop.js +++ b/commands/search/eshop.js @@ -44,13 +44,13 @@ module.exports = class EshopCommand extends Command { ) .setURL(data.microsite_ref ? data.microsite_ref.microsite.url : null) .setThumbnail(data.front_box_art.image.image.url) - .setFooter(data.disclaimers || '') .setTitle(data.title) - .addField('❯ Price', data.eshop_price === '0.00' ? 'Free!' : `$${data.eshop_price}`, true) + .addField('❯ Price', data.eshop_price + ? data.eshop_price === '0.00' ? 'Free!' : `$${data.eshop_price}` + : '???', true) .addField('❯ Category', data.game_category_ref ? data.game_category_ref.length ? data.game_category_ref[0].title : data.game_category_ref.title - : '???', - true) + : '???', true) .addField('❯ Release Date', data.release_date ? new Date(data.release_date).toDateString() : '???', true) .addField('❯ Player Count', data.number_of_players || '???', true) .addField('❯ DLC?', data.dlc === 'true' ? 'Yes' : 'No', true) @@ -68,7 +68,7 @@ module.exports = class EshopCommand extends Command { .get('https://www.nintendo.com/json/content/get/filter/game') .query({ system, - sort: 'relevance', + sort: 'title', direction: 'asc', search: query, limit: 1,