Change in the way Requests work

This commit is contained in:
Daniel Odendahl Jr
2017-04-03 20:38:18 +00:00
parent 0d05032bb3
commit 06e1cd9c50
18 changed files with 213 additions and 118 deletions
+2 -1
View File
@@ -56,7 +56,8 @@ module.exports = class StrawpollCommand extends commando.Command {
title: title,
options: choices
});
return message.say(`${response.body.title}\nhttp://strawpoll.me/${response.body.id}`);
let data = response.body;
return message.say(`${data.title}\nhttp://strawpoll.me/${data.id}`);
}
catch (err) {
return message.say(":x: Error! Something went wrong!");