Semantically correct

This commit is contained in:
hydrabolt
2015-11-15 14:26:30 +00:00
parent fbd922e557
commit f1bde8a98a
6 changed files with 34 additions and 16 deletions

View File

@@ -4,6 +4,7 @@ var Channel = require("./Channel.js");
var User = require("./User.js");
var Equality = require("../Util/Equality.js");
var Cache = require("../Util/Cache.js");
var reg = require("../Util/ArgumentRegulariser.js").reg;
class PMChannel extends Equality{
constructor(data, client){
@@ -25,6 +26,14 @@ class PMChannel extends Equality{
toString(){
return this.recipient.toString();
}
sendMessage(){
return this.client.sendMessage.apply(this.client, reg(this, arguments));
}
sendTTSMessage(){
return this.client.sendTTSMessage.apply(this.client, reg(this, arguments));
}
}
module.exports = PMChannel;