From 7e0b93499afca2900e7df8d0777b4eefc69ee5aa Mon Sep 17 00:00:00 2001 From: Daniel Odendahl Jr Date: Tue, 12 Dec 2017 04:22:03 +0000 Subject: [PATCH] Fix --- commands/search/igdb.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/search/igdb.js b/commands/search/igdb.js index 0f7cc8b8..cdc7ed96 100644 --- a/commands/search/igdb.js +++ b/commands/search/igdb.js @@ -45,7 +45,7 @@ module.exports = class IGDBCommand extends Command { .setDescription(data.summary ? shorten(data.summary) : 'No description available.') .setThumbnail(data.cover ? data.cover.url : null) .addField('❯ ESRB Rating', - data.esrb ? esrb[data.esrb.rating] : '???', true) + data.esrb ? esrb[data.esrb.rating - 1] : '???', true) .addField('❯ Release Date', data.first_release_date ? new Date(data.first_release_date).toDateString() : '???', true) .addField('❯ Status',