mirror of
https://github.com/danbulant/discord.js
synced 2026-05-24 20:42:27 +00:00
19 lines
346 B
JavaScript
19 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;
|
|
}
|
|
|
|
}
|