mirror of
https://github.com/danbulant/discord.js
synced 2026-05-24 20:42:27 +00:00
2.6.5, bug fixes
This commit is contained in:
parent
68ffb1410b
commit
419ac718e8
2 changed files with 14 additions and 4 deletions
16
lib/list.js
16
lib/list.js
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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": {
|
||||
|
|
|
|||
Loading…
Reference in a new issue