mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-20 05:51:35 +02:00
Change in the way Requests work
This commit is contained in:
@@ -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!");
|
||||
|
||||
Reference in New Issue
Block a user