mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-19 04:53:30 +01:00
filter list change
This commit is contained in:
10
lib/list.js
10
lib/list.js
@@ -180,7 +180,10 @@ exports.List.prototype.filter = function( key, value, onlyOne, caseInsen ) {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
return results;
|
var retList = new List( this.discriminator );
|
||||||
|
retList.contents = results;
|
||||||
|
|
||||||
|
return retList;
|
||||||
}
|
}
|
||||||
|
|
||||||
exports.List.prototype.deepFilter = function( keys, value, onlyOne ) {
|
exports.List.prototype.deepFilter = function( keys, value, onlyOne ) {
|
||||||
@@ -216,5 +219,8 @@ exports.List.prototype.deepFilter = function( keys, value, onlyOne ) {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
return results;
|
var retList = new List( this.discriminator );
|
||||||
|
retList.contents = results;
|
||||||
|
|
||||||
|
return retList;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "discord.js",
|
"name": "discord.js",
|
||||||
"version": "2.6.3",
|
"version": "2.6.4",
|
||||||
"description": "A way to interface with the Discord API",
|
"description": "A way to interface with the Discord API",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
Reference in New Issue
Block a user