From c6365bb4a53e9676935b5d7e405bed9201eff904 Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Mon, 8 Jun 2020 12:03:40 -0400 Subject: [PATCH] Fix --- commands/edit-text/shorten-url.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/edit-text/shorten-url.js b/commands/edit-text/shorten-url.js index 61abeed0..22fae411 100644 --- a/commands/edit-text/shorten-url.js +++ b/commands/edit-text/shorten-url.js @@ -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) {