mirror of
https://github.com/discordjs/discord.js.git
synced 2026-06-02 17:10:08 +00:00
20 lines
321 B
JavaScript
20 lines
321 B
JavaScript
'use strict';
|
|
|
|
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;
|