diff --git a/lib/Client.js b/lib/Client.js index 1c2bb688f..e12f5a0ee 100644 --- a/lib/Client.js +++ b/lib/Client.js @@ -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) { diff --git a/package.json b/package.json index e5d2a0a8e..40a91a8c9 100644 --- a/package.json +++ b/package.json @@ -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": { diff --git a/src/Client.js b/src/Client.js index 31a16fdd9..72298886a 100644 --- a/src/Client.js +++ b/src/Client.js @@ -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){