From 6b582209b2963acbae1001d37d83e566aed3287b Mon Sep 17 00:00:00 2001 From: dragonfire535 Date: Tue, 7 Mar 2017 07:25:18 -0500 Subject: [PATCH] Define Command qs --- commands/search/define.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/commands/search/define.js b/commands/search/define.js index 842f07c1..fdc8e274 100644 --- a/commands/search/define.js +++ b/commands/search/define.js @@ -24,7 +24,14 @@ class DefineCommand extends commando.Command { let definethis = message.content.toLowerCase().split(" ").slice(1).join("%20"); const options = { method: 'GET', - uri: 'http://api.wordnik.com:80/v4/word.json/' + definethis + '/definitions?limit=1&includeRelated=false&useCanonical=false&includeTags=false&api_key=' + config.wordnikkey, + uri: 'http://api.wordnik.com:80/v4/word.json/' + definethis + '/definitions', + qs: { + limit: 1, + includeRelated: false, + useCononical: false, + includeTags: false, + api_key: config.wordnikkey + }, json: true } request(options).then(function (response) {