Fixed bug which stopped file sending

This commit is contained in:
hydrabolt
2015-08-30 21:59:00 +01:00
parent 68fd2ee9dd
commit 8a7629582a
3 changed files with 3 additions and 3 deletions

View File

@@ -595,7 +595,7 @@ var Client = (function () {
fstream = file;
}
self.resolveDestination(destination).then(send)["catch"](error);
self.resolveDestination(destination).then(send)["catch"](bad);
function send(destination) {
if (self.options.queue) {

View File

@@ -1,6 +1,6 @@
{
"name": "discord.js",
"version": "3.1.4",
"version": "3.1.5",
"description": "A way to interface with the Discord API",
"main": "./lib/index.js",
"scripts": {

View File

@@ -600,7 +600,7 @@ class Client {
fstream = file;
}
self.resolveDestination(destination).then(send).catch(error);
self.resolveDestination(destination).then(send).catch(bad);
function send(destination) {
if(self.options.queue){