Merge remote-tracking branch 'upstream/rewrite' into rewrite

This commit is contained in:
abalabahaha
2015-11-15 12:47:43 -08:00
15 changed files with 177 additions and 0 deletions

View File

@@ -4,6 +4,7 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
var Cache = require("../Util/Cache.js");
var User = require("./User.js");
var reg = require("../Util/ArgumentRegulariser.js").reg;
var Message = (function () {
function Message(data, channel, client) {
@@ -40,6 +41,22 @@ var Message = (function () {
return this.content;
};
Message.prototype["delete"] = function _delete() {
return this.client.deleteMessage.apply(this.client, reg(this, arguments));
};
Message.prototype.update = function update() {
return this.client.updateMessage.apply(this.client, reg(this, arguments));
};
Message.prototype.reply = function reply() {
return this.client.reply.apply(this.client, reg(this, arguments));
};
Message.prototype.replyTTS = function replyTTS() {
return this.client.replyTTS.apply(this.client, reg(this, arguments));
};
return Message;
})();