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

@@ -16,14 +16,6 @@ class Channel extends Equality{
delete(){
return this.client.deleteChannel.apply(this.client, reg(this, arguments));
}
sendMessage(){
return this.client.sendMessage.apply(this.client, reg(this, arguments));
}
sendTTSMessage(){
return this.client.sendTTSMessage.apply(this.client, reg(this, arguments));
}
}

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;

View File

@@ -31,6 +31,14 @@ class TextChannel extends ServerChannel{
update(){
return this.client.updateChannel.apply(this.client, reg(this, arguments));
}
sendMessage(){
return this.client.sendMessage.apply(this.client, reg(this, arguments));
}
sendTTSMessage(){
return this.client.sendTTSMessage.apply(this.client, reg(this, arguments));
}
}
module.exports = TextChannel;