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

@@ -1,10 +1,14 @@
'use strict';
class Channel {
constructor(client, data) {
constructor(client, data, guild) {
this.client = client;
this.typingMap = {};
this.typingTimeouts = [];
if (guild) {
this.guild = guild;
}
if (data) {
this.setup(data);
}