mirror of
https://github.com/danbulant/discord.js
synced 2026-07-07 20:20:55 +00:00
Added message.edit, textchannel.send, textchannel.sendTTS and pmchannel.send, pmchannel.sendTTS
This commit is contained in:
parent
93db5efe38
commit
f95822dcb7
28 changed files with 65 additions and 25 deletions
|
|
@ -79,6 +79,10 @@ var Message = (function (_Equality) {
|
||||||
return this.client.updateMessage.apply(this.client, _UtilArgumentRegulariser.reg(this, arguments));
|
return this.client.updateMessage.apply(this.client, _UtilArgumentRegulariser.reg(this, arguments));
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Message.prototype.edit = function edit() {
|
||||||
|
return this.client.updateMessage.apply(this.client, _UtilArgumentRegulariser.reg(this, arguments));
|
||||||
|
};
|
||||||
|
|
||||||
Message.prototype.reply = function reply() {
|
Message.prototype.reply = function reply() {
|
||||||
return this.client.reply.apply(this.client, _UtilArgumentRegulariser.reg(this, arguments));
|
return this.client.reply.apply(this.client, _UtilArgumentRegulariser.reg(this, arguments));
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -48,10 +48,18 @@ var PMChannel = (function (_Channel) {
|
||||||
return this.client.sendMessage.apply(this.client, _UtilArgumentRegulariser.reg(this, arguments));
|
return this.client.sendMessage.apply(this.client, _UtilArgumentRegulariser.reg(this, arguments));
|
||||||
};
|
};
|
||||||
|
|
||||||
|
PMChannel.prototype.send = function send() {
|
||||||
|
return this.client.sendMessage.apply(this.client, _UtilArgumentRegulariser.reg(this, arguments));
|
||||||
|
};
|
||||||
|
|
||||||
PMChannel.prototype.sendTTSMessage = function sendTTSMessage() {
|
PMChannel.prototype.sendTTSMessage = function sendTTSMessage() {
|
||||||
return this.client.sendTTSMessage.apply(this.client, _UtilArgumentRegulariser.reg(this, arguments));
|
return this.client.sendTTSMessage.apply(this.client, _UtilArgumentRegulariser.reg(this, arguments));
|
||||||
};
|
};
|
||||||
|
|
||||||
|
PMChannel.prototype.sendTTS = function sendTTS() {
|
||||||
|
return this.client.sendTTSMessage.apply(this.client, _UtilArgumentRegulariser.reg(this, arguments));
|
||||||
|
};
|
||||||
|
|
||||||
_createClass(PMChannel, [{
|
_createClass(PMChannel, [{
|
||||||
key: "lastMessage",
|
key: "lastMessage",
|
||||||
get: function get() {
|
get: function get() {
|
||||||
|
|
|
||||||
|
|
@ -51,10 +51,18 @@ var TextChannel = (function (_ServerChannel) {
|
||||||
return this.client.sendMessage.apply(this.client, _UtilArgumentRegulariser.reg(this, arguments));
|
return this.client.sendMessage.apply(this.client, _UtilArgumentRegulariser.reg(this, arguments));
|
||||||
};
|
};
|
||||||
|
|
||||||
|
TextChannel.prototype.send = function send() {
|
||||||
|
return this.client.sendMessage.apply(this.client, _UtilArgumentRegulariser.reg(this, arguments));
|
||||||
|
};
|
||||||
|
|
||||||
TextChannel.prototype.sendTTSMessage = function sendTTSMessage() {
|
TextChannel.prototype.sendTTSMessage = function sendTTSMessage() {
|
||||||
return this.client.sendTTSMessage.apply(this.client, _UtilArgumentRegulariser.reg(this, arguments));
|
return this.client.sendTTSMessage.apply(this.client, _UtilArgumentRegulariser.reg(this, arguments));
|
||||||
};
|
};
|
||||||
|
|
||||||
|
TextChannel.prototype.sendTTS = function sendTTS() {
|
||||||
|
return this.client.sendTTSMessage.apply(this.client, _UtilArgumentRegulariser.reg(this, arguments));
|
||||||
|
};
|
||||||
|
|
||||||
_createClass(TextChannel, [{
|
_createClass(TextChannel, [{
|
||||||
key: "lastMessage",
|
key: "lastMessage",
|
||||||
get: function get() {
|
get: function get() {
|
||||||
|
|
|
||||||
|
|
@ -61,6 +61,10 @@ export default class Message extends Equality{
|
||||||
return this.client.updateMessage.apply(this.client, reg(this, arguments));
|
return this.client.updateMessage.apply(this.client, reg(this, arguments));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
edit() {
|
||||||
|
return this.client.updateMessage.apply(this.client, reg(this, arguments));
|
||||||
|
}
|
||||||
|
|
||||||
reply(){
|
reply(){
|
||||||
return this.client.reply.apply(this.client, reg(this, arguments));
|
return this.client.reply.apply(this.client, reg(this, arguments));
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -28,7 +28,15 @@ export default class PMChannel extends Channel {
|
||||||
return this.client.sendMessage.apply(this.client, reg(this, arguments));
|
return this.client.sendMessage.apply(this.client, reg(this, arguments));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
send() {
|
||||||
|
return this.client.sendMessage.apply(this.client, reg(this, arguments));
|
||||||
|
}
|
||||||
|
|
||||||
sendTTSMessage(){
|
sendTTSMessage(){
|
||||||
return this.client.sendTTSMessage.apply(this.client, reg(this, arguments));
|
return this.client.sendTTSMessage.apply(this.client, reg(this, arguments));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
sendTTS() {
|
||||||
|
return this.client.sendTTSMessage.apply(this.client, reg(this, arguments));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -34,7 +34,15 @@ export default class TextChannel extends ServerChannel{
|
||||||
return this.client.sendMessage.apply(this.client, reg(this, arguments));
|
return this.client.sendMessage.apply(this.client, reg(this, arguments));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
send() {
|
||||||
|
return this.client.sendMessage.apply(this.client, reg(this, arguments));
|
||||||
|
}
|
||||||
|
|
||||||
sendTTSMessage(){
|
sendTTSMessage(){
|
||||||
return this.client.sendTTSMessage.apply(this.client, reg(this, arguments));
|
return this.client.sendTTSMessage.apply(this.client, reg(this, arguments));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
sendTTS() {
|
||||||
|
return this.client.sendTTSMessage.apply(this.client, reg(this, arguments));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue