mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
Added message.edit, textchannel.send, textchannel.sendTTS and pmchannel.send, pmchannel.sendTTS
This commit is contained in:
@@ -630,4 +630,4 @@ var Client = (function (_EventEmitter) {
|
||||
})(_events2["default"]);
|
||||
|
||||
exports["default"] = Client;
|
||||
module.exports = exports["default"];
|
||||
module.exports = exports["default"];
|
||||
@@ -8,4 +8,4 @@ exports["default"] = {
|
||||
READY: 3,
|
||||
DISCONNECTED: 4
|
||||
};
|
||||
module.exports = exports["default"];
|
||||
module.exports = exports["default"];
|
||||
@@ -1416,4 +1416,4 @@ var InternalClient = (function () {
|
||||
})();
|
||||
|
||||
exports["default"] = InternalClient;
|
||||
module.exports = exports["default"];
|
||||
module.exports = exports["default"];
|
||||
@@ -245,4 +245,4 @@ var Resolver = (function () {
|
||||
})();
|
||||
|
||||
exports["default"] = Resolver;
|
||||
module.exports = exports["default"];
|
||||
module.exports = exports["default"];
|
||||
@@ -127,4 +127,4 @@ var PacketType = {
|
||||
SERVER_BAN_ADD: "GUILD_BAN_ADD",
|
||||
SERVER_BAN_REMOVE: "GUILD_BAN_REMOVE"
|
||||
};
|
||||
exports.PacketType = PacketType;
|
||||
exports.PacketType = PacketType;
|
||||
@@ -42,4 +42,4 @@ var Channel = (function (_Equality) {
|
||||
})(_UtilEquality2["default"]);
|
||||
|
||||
exports["default"] = Channel;
|
||||
module.exports = exports["default"];
|
||||
module.exports = exports["default"];
|
||||
@@ -75,4 +75,4 @@ var ChannelPermissions = (function () {
|
||||
})();
|
||||
|
||||
exports["default"] = ChannelPermissions;
|
||||
module.exports = exports["default"];
|
||||
module.exports = exports["default"];
|
||||
@@ -29,4 +29,4 @@ var Invite = (function () {
|
||||
})();
|
||||
|
||||
exports["default"] = Invite;
|
||||
module.exports = exports["default"];
|
||||
module.exports = exports["default"];
|
||||
@@ -79,6 +79,10 @@ var Message = (function (_Equality) {
|
||||
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() {
|
||||
return this.client.reply.apply(this.client, _UtilArgumentRegulariser.reg(this, arguments));
|
||||
};
|
||||
@@ -98,4 +102,4 @@ var Message = (function (_Equality) {
|
||||
})(_UtilEquality2["default"]);
|
||||
|
||||
exports["default"] = Message;
|
||||
module.exports = exports["default"];
|
||||
module.exports = exports["default"];
|
||||
@@ -48,10 +48,18 @@ var PMChannel = (function (_Channel) {
|
||||
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() {
|
||||
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, [{
|
||||
key: "lastMessage",
|
||||
get: function get() {
|
||||
@@ -63,4 +71,4 @@ var PMChannel = (function (_Channel) {
|
||||
})(_Channel3["default"]);
|
||||
|
||||
exports["default"] = PMChannel;
|
||||
module.exports = exports["default"];
|
||||
module.exports = exports["default"];
|
||||
@@ -86,4 +86,4 @@ var PermissionOverwrite = (function () {
|
||||
})();
|
||||
|
||||
exports["default"] = PermissionOverwrite;
|
||||
module.exports = exports["default"];
|
||||
module.exports = exports["default"];
|
||||
@@ -139,4 +139,4 @@ var Role = (function () {
|
||||
})();
|
||||
|
||||
exports["default"] = Role;
|
||||
module.exports = exports["default"];
|
||||
module.exports = exports["default"];
|
||||
@@ -202,4 +202,4 @@ var Server = (function (_Equality) {
|
||||
})(_UtilEquality2["default"]);
|
||||
|
||||
exports["default"] = Server;
|
||||
module.exports = exports["default"];
|
||||
module.exports = exports["default"];
|
||||
@@ -131,4 +131,4 @@ var ServerChannel = (function (_Channel) {
|
||||
})(_Channel3["default"]);
|
||||
|
||||
exports["default"] = ServerChannel;
|
||||
module.exports = exports["default"];
|
||||
module.exports = exports["default"];
|
||||
@@ -51,10 +51,18 @@ var TextChannel = (function (_ServerChannel) {
|
||||
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() {
|
||||
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, [{
|
||||
key: "lastMessage",
|
||||
get: function get() {
|
||||
@@ -66,4 +74,4 @@ var TextChannel = (function (_ServerChannel) {
|
||||
})(_ServerChannel3["default"]);
|
||||
|
||||
exports["default"] = TextChannel;
|
||||
module.exports = exports["default"];
|
||||
module.exports = exports["default"];
|
||||
@@ -67,4 +67,4 @@ var User = (function (_Equality) {
|
||||
})(_UtilEquality2["default"]);
|
||||
|
||||
exports["default"] = User;
|
||||
module.exports = exports["default"];
|
||||
module.exports = exports["default"];
|
||||
@@ -25,4 +25,4 @@ var VoiceChannel = (function (_ServerChannel) {
|
||||
})(_ServerChannel3["default"]);
|
||||
|
||||
exports["default"] = VoiceChannel;
|
||||
module.exports = exports["default"];
|
||||
module.exports = exports["default"];
|
||||
@@ -5,4 +5,4 @@ exports.reg = reg;
|
||||
|
||||
function reg(c, a) {
|
||||
return [c].concat(Array.prototype.slice.call(a));
|
||||
}
|
||||
}
|
||||
@@ -106,4 +106,4 @@ var Cache = (function (_Array) {
|
||||
})(Array);
|
||||
|
||||
exports["default"] = Cache;
|
||||
module.exports = exports["default"];
|
||||
module.exports = exports["default"];
|
||||
@@ -45,4 +45,4 @@ var Equality = (function () {
|
||||
})();
|
||||
|
||||
exports["default"] = Equality;
|
||||
module.exports = exports["default"];
|
||||
module.exports = exports["default"];
|
||||
@@ -132,4 +132,4 @@ var AudioEncoder = (function () {
|
||||
})();
|
||||
|
||||
exports["default"] = AudioEncoder;
|
||||
module.exports = exports["default"];
|
||||
module.exports = exports["default"];
|
||||
@@ -25,4 +25,4 @@ var StreamIntent = (function (_EventEmitter) {
|
||||
})(_events2["default"]);
|
||||
|
||||
exports["default"] = StreamIntent;
|
||||
module.exports = exports["default"];
|
||||
module.exports = exports["default"];
|
||||
@@ -363,4 +363,4 @@ var VoiceConnection = (function (_EventEmitter) {
|
||||
})(_events2["default"]);
|
||||
|
||||
exports["default"] = VoiceConnection;
|
||||
module.exports = exports["default"];
|
||||
module.exports = exports["default"];
|
||||
@@ -26,4 +26,4 @@ var VoicePacket = function VoicePacket(data, sequence, time, ssrc) {
|
||||
};
|
||||
|
||||
exports["default"] = VoicePacket;
|
||||
module.exports = exports["default"];
|
||||
module.exports = exports["default"];
|
||||
@@ -76,4 +76,4 @@ exports["default"] = {
|
||||
VoiceChannel: _StructuresVoiceChannel2["default"],
|
||||
Constants: _Constants2["default"]
|
||||
};
|
||||
module.exports = exports["default"];
|
||||
module.exports = exports["default"];
|
||||
@@ -60,6 +60,10 @@ export default class Message extends Equality{
|
||||
update(){
|
||||
return this.client.updateMessage.apply(this.client, reg(this, arguments));
|
||||
}
|
||||
|
||||
edit() {
|
||||
return this.client.updateMessage.apply(this.client, reg(this, arguments));
|
||||
}
|
||||
|
||||
reply(){
|
||||
return this.client.reply.apply(this.client, reg(this, arguments));
|
||||
|
||||
@@ -27,8 +27,16 @@ export default class PMChannel extends Channel {
|
||||
sendMessage(){
|
||||
return this.client.sendMessage.apply(this.client, reg(this, arguments));
|
||||
}
|
||||
|
||||
send() {
|
||||
return this.client.sendMessage.apply(this.client, reg(this, arguments));
|
||||
}
|
||||
|
||||
sendTTSMessage(){
|
||||
return this.client.sendTTSMessage.apply(this.client, reg(this, arguments));
|
||||
}
|
||||
|
||||
sendTTS() {
|
||||
return this.client.sendTTSMessage.apply(this.client, reg(this, arguments));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -33,8 +33,16 @@ export default class TextChannel extends ServerChannel{
|
||||
sendMessage(){
|
||||
return this.client.sendMessage.apply(this.client, reg(this, arguments));
|
||||
}
|
||||
|
||||
send() {
|
||||
return this.client.sendMessage.apply(this.client, reg(this, arguments));
|
||||
}
|
||||
|
||||
sendTTSMessage(){
|
||||
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