mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
20 lines
346 B
JavaScript
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;
|
|
}
|
|
|
|
}
|