add PermissionOverwrites class in preparation for permission evaluation

This commit is contained in:
hydrabolt
2016-04-18 17:23:37 +01:00
parent c36cc3b551
commit 7f4751e7c4
4 changed files with 35 additions and 6 deletions

View File

@@ -0,0 +1,19 @@
'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;