superagent is better

This commit is contained in:
Daniel Odendahl Jr
2017-04-18 20:46:57 +00:00
parent 3ce1bdbb64
commit 5ec91d6728
25 changed files with 111 additions and 49 deletions
+2 -2
View File
@@ -1,5 +1,5 @@
const { Command } = require('discord.js-commando');
const snekfetch = require('snekfetch');
const request = require('superagent');
module.exports = class WebhookCommand extends Command {
constructor(client) {
@@ -34,7 +34,7 @@ module.exports = class WebhookCommand extends Command {
const text = args.text;
try {
await message.delete();
await snekfetch
await request
.post(process.env.WEBHOOK_URL)
.send({
content: text