diff --git a/README.md b/README.md index fb44154e1..c4ebf1922 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ New update features **big speed boosts** (everything cached and sorted with arou **[For more information, click here.](https://github.com/hydrabolt/discord.js/wiki)** -### This module is still in alpha! +### This module is still in alpha - especially the newer versions! This node module is still in alpha, and some methods and functions may change or completely disappear! diff --git a/index.js b/index.js index 9bc7c9906..7c86e39ff 100644 --- a/index.js +++ b/index.js @@ -786,7 +786,7 @@ exports.Client.prototype.sendMessage = function( destination, toSend, callback, if ( err ) { callback( err ); } else { - self.PMList.add( new PMChannel( channel.recipient, channel.id ) ); + self.PMList.add( new PMChannel( channel.user, channel.id ) ); setChannId( channel.id ); send(); } diff --git a/lib/list.js b/lib/list.js index b840dca1b..d804e4c68 100644 --- a/lib/list.js +++ b/lib/list.js @@ -156,6 +156,7 @@ exports.List.prototype.concatSublists = function( whereList, discriminator ) { exports.List.prototype.filter = function( key, value, onlyOne, caseInsen ) { var results = []; + value = change( value ); for ( index in this.contents ) { @@ -196,9 +197,10 @@ exports.List.prototype.getValues = function( key ){ } -exports.List.prototype.deepFilter = function( keys, value, onlyOne ) { +exports.List.prototype.deepFilter = function( keys, value, onlyOne, caseInsen ) { var results = []; + value = change( value ); for ( index in this.contents ) { diff --git a/package.json b/package.json index 8e4e87d69..61fff153e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "discord.js", - "version": "2.6.6", + "version": "2.6.7", "description": "A way to interface with the Discord API", "main": "index.js", "scripts": {