mirror of
https://github.com/danbulant/discord.js
synced 2026-07-07 12:11:11 +00:00
Added message deregs
This commit is contained in:
parent
8a3c99fdd2
commit
a5581382b9
2 changed files with 32 additions and 0 deletions
|
|
@ -41,6 +41,22 @@ var Message = (function () {
|
||||||
return this.content;
|
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.update.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;
|
return Message;
|
||||||
})();
|
})();
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -41,6 +41,22 @@ class Message{
|
||||||
toString(){
|
toString(){
|
||||||
return this.content;
|
return this.content;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
delete(){
|
||||||
|
return this.client.deleteMessage.apply(this.client, reg(this, arguments));
|
||||||
|
}
|
||||||
|
|
||||||
|
update(){
|
||||||
|
return this.client.update.apply(this.client, reg(this, arguments));
|
||||||
|
}
|
||||||
|
|
||||||
|
reply(){
|
||||||
|
return this.client.reply.apply(this.client, reg(this, arguments));
|
||||||
|
}
|
||||||
|
|
||||||
|
replyTTS(){
|
||||||
|
return this.client.replyTTS.apply(this.client, reg(this, arguments));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
module.exports = Message;
|
module.exports = Message;
|
||||||
Loading…
Reference in a new issue