mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-19 04:53:30 +01:00
Added message.edit, textchannel.send, textchannel.sendTTS and pmchannel.send, pmchannel.sendTTS
This commit is contained in:
@@ -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));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user