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;
try {
await message.delete();
const post = await request
await request
.post(config.webhook)
.send({
content: content
});
return post;
return;
}
catch (err) {
return message.say(':x: Error! Message failed to send!');