This commit is contained in:
Dragon Fire
2020-06-08 12:03:40 -04:00
parent b7794c5e32
commit c6365bb4a5
+1 -1
View File
@@ -36,7 +36,7 @@ module.exports = class ShortenUrlCommand extends Command {
try {
const { body } = await request
.post('https://api-ssl.bitly.com/v4/shorten')
.query({ long_url: url })
.send({ long_url: url })
.set({ Authorization: `Bearer ${BITLY_KEY}` });
return msg.say(body.link);
} catch (err) {