Stop using deprecated methods within discord.js (#1441)

* fix deprecation stuff

* fixed a check
This commit is contained in:
Isabella
2017-05-01 04:14:26 -05:00
committed by Amish Shah
parent 166161d6d3
commit a02e10926d
3 changed files with 6 additions and 6 deletions

View File

@@ -456,7 +456,7 @@ const Deprecated = {
* @deprecated
*/
sendFile(attachment, name, content, options = {}) {
return this.sendFiles([{ attachment, name }], content, options);
return this.send({ files: [{ attachment, name }], content, options });
},
/**