Files
discord.js/lib/channel.js
hydrabolt a7c9dafe06 1.0.1 actual
works!
2015-08-10 23:05:38 +01:00

20 lines
346 B
JavaScript

exports.Channel = function(name, serverId, type, id, isPrivate){
this.name = name;
this.serverId = serverId;
this.type = type;
this.id = id;
this.isPrivate = isPrivate;
}
exports.Channel.equals = function(otherChannel){
if(otherChannel.id === this.id){
return true;
} else {
return false;
}
}