mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
Fix
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user