mirror of
https://github.com/danbulant/discord.js
synced 2026-06-24 17:21:59 +00:00
Docs for permissionoverwrites
This commit is contained in:
parent
3ac191a812
commit
839ff5ce43
2 changed files with 16 additions and 1 deletions
File diff suppressed because one or more lines are too long
|
|
@ -1,5 +1,12 @@
|
||||||
|
/**
|
||||||
|
* Represents a permission overwrite for a Role or Member in a Guild Channel.
|
||||||
|
*/
|
||||||
class PermissionOverwrites {
|
class PermissionOverwrites {
|
||||||
constructor(guildChannel, data) {
|
constructor(guildChannel, data) {
|
||||||
|
/**
|
||||||
|
* The GuildChannel this overwrite is for
|
||||||
|
* @type {GuildChannel}
|
||||||
|
*/
|
||||||
this.channel = guildChannel;
|
this.channel = guildChannel;
|
||||||
if (data) {
|
if (data) {
|
||||||
this.setup(data);
|
this.setup(data);
|
||||||
|
|
@ -7,7 +14,15 @@ class PermissionOverwrites {
|
||||||
}
|
}
|
||||||
|
|
||||||
setup(data) {
|
setup(data) {
|
||||||
|
/**
|
||||||
|
* The type of this overwrite
|
||||||
|
* @type {String}
|
||||||
|
*/
|
||||||
this.type = data.type;
|
this.type = data.type;
|
||||||
|
/**
|
||||||
|
* The ID of this overwrite, either a User ID or a Role ID
|
||||||
|
* @type {String}
|
||||||
|
*/
|
||||||
this.id = data.id;
|
this.id = data.id;
|
||||||
this.denyData = data.deny;
|
this.denyData = data.deny;
|
||||||
this.allowData = data.allow;
|
this.allowData = data.allow;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue