mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 00:23:30 +01:00
Built internal changes
This commit is contained in:
@@ -27,4 +27,4 @@ var Channel = (function (_Equality) {
|
||||
return Channel;
|
||||
})(Equality);
|
||||
|
||||
module.exports = Channel;
|
||||
module.exports = Channel;
|
||||
@@ -72,4 +72,4 @@ var ChannelPermissions = (function () {
|
||||
return ChannelPermissions;
|
||||
})();
|
||||
|
||||
module.exports = ChannelPermissions;
|
||||
module.exports = ChannelPermissions;
|
||||
@@ -6,27 +6,27 @@ var Server = require("./Server.js");
|
||||
var ServerChannel = require("./ServerChannel.js");
|
||||
|
||||
var Invite = (function () {
|
||||
function Invite(data, chan, client) {
|
||||
_classCallCheck(this, Invite);
|
||||
function Invite(data, chan, client) {
|
||||
_classCallCheck(this, Invite);
|
||||
|
||||
this.maxAge = data.max_age;
|
||||
this.code = data.code;
|
||||
this.server = chan.server;
|
||||
this.channel = chan;
|
||||
this.revoked = data.revoked;
|
||||
this.createdAt = Date.parse(data.created_at);
|
||||
this.temporary = data.temporary;
|
||||
this.uses = data.uses;
|
||||
this.maxUses = data.uses;
|
||||
this.inviter = client.internal.users.get("id", data.inviter.id);
|
||||
this.xkcd = data.xkcdpass;
|
||||
}
|
||||
this.maxAge = data.max_age;
|
||||
this.code = data.code;
|
||||
this.server = chan.server;
|
||||
this.channel = chan;
|
||||
this.revoked = data.revoked;
|
||||
this.createdAt = Date.parse(data.created_at);
|
||||
this.temporary = data.temporary;
|
||||
this.uses = data.uses;
|
||||
this.maxUses = data.uses;
|
||||
this.inviter = client.internal.users.get("id", data.inviter.id);
|
||||
this.xkcd = data.xkcdpass;
|
||||
}
|
||||
|
||||
Invite.prototype.toString = function toString() {
|
||||
return "https://discord.gg/" + this.code;
|
||||
};
|
||||
Invite.prototype.toString = function toString() {
|
||||
return "https://discord.gg/" + this.code;
|
||||
};
|
||||
|
||||
return Invite;
|
||||
return Invite;
|
||||
})();
|
||||
|
||||
module.exports = Invite;
|
||||
@@ -60,4 +60,4 @@ var Message = (function () {
|
||||
return Message;
|
||||
})();
|
||||
|
||||
module.exports = Message;
|
||||
module.exports = Message;
|
||||
@@ -52,4 +52,4 @@ var PMChannel = (function (_Equality) {
|
||||
return PMChannel;
|
||||
})(Equality);
|
||||
|
||||
module.exports = PMChannel;
|
||||
module.exports = PMChannel;
|
||||
@@ -83,4 +83,4 @@ var PermissionOverwrite = (function () {
|
||||
return PermissionOverwrite;
|
||||
})();
|
||||
|
||||
module.exports = PermissionOverwrite;
|
||||
module.exports = PermissionOverwrite;
|
||||
@@ -136,4 +136,4 @@ var Role = (function () {
|
||||
return Role;
|
||||
})();
|
||||
|
||||
module.exports = Role;
|
||||
module.exports = Role;
|
||||
@@ -166,4 +166,4 @@ var Server = (function (_Equality) {
|
||||
return Server;
|
||||
})(Equality);
|
||||
|
||||
module.exports = Server;
|
||||
module.exports = Server;
|
||||
@@ -110,4 +110,4 @@ var ServerChannel = (function (_Channel) {
|
||||
return ServerChannel;
|
||||
})(Channel);
|
||||
|
||||
module.exports = ServerChannel;
|
||||
module.exports = ServerChannel;
|
||||
@@ -57,4 +57,4 @@ var TextChannel = (function (_ServerChannel) {
|
||||
return TextChannel;
|
||||
})(ServerChannel);
|
||||
|
||||
module.exports = TextChannel;
|
||||
module.exports = TextChannel;
|
||||
@@ -55,4 +55,4 @@ var User = (function (_Equality) {
|
||||
return User;
|
||||
})(Equality);
|
||||
|
||||
module.exports = User;
|
||||
module.exports = User;
|
||||
@@ -18,4 +18,4 @@ var VoiceChannel = (function (_ServerChannel) {
|
||||
return VoiceChannel;
|
||||
})(ServerChannel);
|
||||
|
||||
module.exports = VoiceChannel;
|
||||
module.exports = VoiceChannel;
|
||||
Reference in New Issue
Block a user