mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-15 02:53:31 +01:00
1.0.1 actual
works!
This commit is contained in:
19
lib/channel.js
Normal file
19
lib/channel.js
Normal file
@@ -0,0 +1,19 @@
|
||||
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;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user