fix(Webhook#send): incorrect docs + return

Two things:
* Documentation doesn't account for possible raw object return
* Allows the return to be a Message object as well, like the docs originally intended
This commit is contained in:
Lewdcario
2018-01-24 13:06:05 -06:00
parent 8df1ac9920
commit e978253896
2 changed files with 5 additions and 2 deletions

View File

@@ -806,7 +806,10 @@ class RESTMethods {
content,
tts,
embeds,
}, files).then(resolve, reject);
}, files).then(data => {
if (!this.client.channels) resolve(data);
else resolve(this.client.actions.MessageCreate.handle(data).message);
}, reject);
}
});
}