mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-11 15:57:50 +02:00
Can do this instead
This commit is contained in:
@@ -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`
|
||||
|
||||
Reference in New Issue
Block a user