mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 00:23:30 +01:00
Stop using deprecated methods within discord.js (#1441)
* fix deprecation stuff * fixed a check
This commit is contained in:
@@ -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 });
|
||||
},
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user