Finished channels

This commit is contained in:
hydrabolt
2015-11-20 20:44:09 +00:00
parent d26702f48f
commit 19fb8e6dfd
10 changed files with 127 additions and 14 deletions

View File

@@ -6,13 +6,11 @@ var Equality = require("../Util/Equality.js");
var Cache = require("../Util/Cache.js");
var reg = require("../Util/ArgumentRegulariser.js").reg;
class PMChannel extends Equality{
class PMChannel extends Channel{
constructor(data, client){
super();
this.client = client;
super(data, client);
this.type = data.type || "text";
this.id = data.id;
this.lastMessageId = data.last_message_id;
this.messages = new Cache("id", 1000);
this.recipient = this.client.internal.users.add(new User(data.recipient, this.client));