2.6.5, bug fixes

This commit is contained in:
hydrabolt
2015-08-20 16:43:06 +01:00
parent 68ffb1410b
commit 419ac718e8
2 changed files with 14 additions and 4 deletions

View File

@@ -180,12 +180,22 @@ exports.List.prototype.filter = function( key, value, onlyOne, caseInsen ) {
return false;
}
var retList = new List( this.discriminator );
var retList = new exports.List( this.discriminator );
retList.contents = results;
return retList;
}
exports.List.prototype.getValues = function( key ){
var valList = [];
for( child of this.contents){
valList.push( child[key] );
}
return valList;
}
exports.List.prototype.deepFilter = function( keys, value, onlyOne ) {
var results = [];
@@ -218,8 +228,8 @@ exports.List.prototype.deepFilter = function( keys, value, onlyOne ) {
if ( onlyOne ) {
return false;
}
var retList = new List( this.discriminator );
var retList = new exports.List( this.discriminator );
retList.contents = results;
return retList;

View File

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