Rename ClientDataResolver.resolveFile -> resolveBuffer

This commit is contained in:
Schuyler Cebulskie
2016-10-30 16:29:56 -04:00
parent 60e0d507f0
commit 5fa9e3548b
6 changed files with 18 additions and 18 deletions

View File

@@ -76,7 +76,7 @@ class TextBasedChannel {
/**
* Send a file to this channel
* @param {FileResolvable} attachment The file to send
* @param {BufferResolvable} attachment The file to send
* @param {string} [fileName="file.jpg"] The name and extension of the file
* @param {StringResolvable} [content] Text message to send with the attachment
* @param {MessageOptions} [options] The options to provide
@@ -92,7 +92,7 @@ class TextBasedChannel {
fileName = 'file.jpg';
}
}
return this.client.resolver.resolveFile(attachment).then(file =>
return this.client.resolver.resolveBuffer(attachment).then(file =>
this.client.rest.methods.sendMessage(this, content, options, {
file,
name: fileName,