Can do this instead

This commit is contained in:
Daniel Odendahl Jr
2017-09-03 19:17:30 +00:00
parent da346ce204
commit d50182ea9d
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -40,7 +40,7 @@ module.exports = class StrawpollCommand extends Command {
if (options.length > 31) return msg.say('Please provide thirty or less choices.');
try {
const { body } = await snekfetch
.post('https://strawpoll.me/api/v2/polls', { followRedirects: true })
.post('https://www.strawpoll.me/api/v2/polls')
.set({ 'Content-Type': 'application/json' })
.send({ title, options });
return msg.say(stripIndents`
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "xiaobot",
"version": "35.1.5",
"version": "35.1.6",
"description": "Your personal server companion.",
"main": "Shard.js",
"scripts": {