mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-13 01:53:30 +01:00
fixed cap error and requires list
This commit is contained in:
@@ -21,7 +21,7 @@ exports.List.prototype.add = function( child ) {
|
||||
|
||||
function addChild(child){
|
||||
|
||||
if(self.length() > cap){
|
||||
if(self.length() > self.cap){
|
||||
self.splice(0, 1);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user