mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 00:23:30 +01:00
fixed cap error and requires list
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
var List = require("./list.js").List;
|
||||
|
||||
exports.Channel = function(name, server, type, id, isPrivate){
|
||||
|
||||
if(!type){ //there's no second argument
|
||||
|
||||
@@ -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