mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 16:43:31 +01:00
Finished most of structure
This commit is contained in:
18
src/Structures/ServerChannel.js
Normal file
18
src/Structures/ServerChannel.js
Normal file
@@ -0,0 +1,18 @@
|
||||
"use strict";
|
||||
|
||||
var Channel = require("./Channel.js");
|
||||
var Cache = require("../Util/Cache.js");
|
||||
var PermissionOverwrite = require("./PermissionOverwrite.js");
|
||||
|
||||
class ServerChannel extends Channel{
|
||||
constructor(data, client){
|
||||
super(data, client);
|
||||
this.type = data.type;
|
||||
this.permissionOverwrites = new Cache();
|
||||
data.permission_overwrites.forEach((permission) => {
|
||||
this.permissionOverwrites.add( new PermissionOverwrite(permission) );
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = ServerChannel;
|
||||
Reference in New Issue
Block a user