mirror of
https://github.com/danbulant/discord.js
synced 2026-05-26 13:32:04 +00:00
Fix optional args for sendFiles (#1278)
This commit is contained in:
parent
94062d19dd
commit
6983798820
1 changed files with 1 additions and 1 deletions
|
|
@ -151,7 +151,7 @@ class TextBasedChannel {
|
|||
* @param {MessageOptions} [options] Options for the message
|
||||
* @returns {Promise<Message>}
|
||||
*/
|
||||
sendFiles(files, content, options) {
|
||||
sendFiles(files, content, options = {}) {
|
||||
return this.send(content, Object.assign(options, { files }));
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue