mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 08:33:30 +01:00
Fix optional args for sendFiles (#1278)
This commit is contained in:
@@ -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 }));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user