Fix in Rin Command's Return

This commit is contained in:
Daniel Odendahl Jr
2017-04-03 23:01:14 +00:00
parent 5519f74b6a
commit 66c91c9efd
+2 -2
View File
@@ -34,12 +34,12 @@ module.exports = class WebhookCommand extends commando.Command {
const content = args.text; const content = args.text;
try { try {
await message.delete(); await message.delete();
const post = await request await request
.post(config.webhook) .post(config.webhook)
.send({ .send({
content: content content: content
}); });
return post; return;
} }
catch (err) { catch (err) {
return message.say(':x: Error! Message failed to send!'); return message.say(':x: Error! Message failed to send!');