mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 16:43:31 +01:00
18 lines
327 B
JavaScript
18 lines
327 B
JavaScript
class PermissionOverwrites {
|
|
constructor(serverChannel, data) {
|
|
this.channel = serverChannel;
|
|
if (data) {
|
|
this.setup(data);
|
|
}
|
|
}
|
|
|
|
setup(data) {
|
|
this.type = data.type;
|
|
this.id = data.id;
|
|
this.denyData = data.deny;
|
|
this.allowData = data.allow;
|
|
}
|
|
}
|
|
|
|
module.exports = PermissionOverwrites;
|