mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-11 09:03:29 +01:00
Compiled lib
This commit is contained in:
@@ -118,7 +118,7 @@ var Server = (function (_Equality) {
|
||||
}
|
||||
}
|
||||
|
||||
Server.prototype.details = function details(user) {
|
||||
Server.prototype.detailsOf = function detailsOf(user) {
|
||||
user = this.client.internal.resolver.resolveUser(user);
|
||||
if (user) {
|
||||
return this.memberMap[user.id];
|
||||
@@ -127,7 +127,7 @@ var Server = (function (_Equality) {
|
||||
}
|
||||
};
|
||||
|
||||
Server.prototype.detailsOf = function detailsOf(user) {
|
||||
Server.prototype.detailsOfUser = function detailsOfUser(user) {
|
||||
return this.details(user);
|
||||
};
|
||||
|
||||
@@ -190,6 +190,50 @@ var Server = (function (_Equality) {
|
||||
return this.client.createRole.apply(this.client, _UtilArgumentRegulariser.reg(this, arguments));
|
||||
};
|
||||
|
||||
Server.prototype.banMember = function banMember(user, tlength, callback) {
|
||||
return this.client.banMember.apply(this.client, [user, this, tlength, callback]);
|
||||
};
|
||||
|
||||
Server.prototype.banUser = function banUser(user, tlength, callback) {
|
||||
return this.client.banMember.apply(this.client, [user, this, tlength, callback]);
|
||||
};
|
||||
|
||||
Server.prototype.ban = function ban(user, tlength, callback) {
|
||||
return this.client.banMember.apply(this.client, [user, this, tlength, callback]);
|
||||
};
|
||||
|
||||
Server.prototype.unbanMember = function unbanMember(user, callback) {
|
||||
return this.client.unbanMember.apply(this.client, [user, this, callback]);
|
||||
};
|
||||
|
||||
Server.prototype.unbanUser = function unbanUser(user, callback) {
|
||||
return this.client.unbanMember.apply(this.client, [user, this, callback]);
|
||||
};
|
||||
|
||||
Server.prototype.unban = function unban(user, callback) {
|
||||
return this.client.unbanMember.apply(this.client, [user, this, callback]);
|
||||
};
|
||||
|
||||
Server.prototype.kickMember = function kickMember(user, callback) {
|
||||
return this.client.kickMember.apply(this.client, [user, this, callback]);
|
||||
};
|
||||
|
||||
Server.prototype.kickUser = function kickUser(user, callback) {
|
||||
return this.client.kickMember.apply(this.client, [user, this, callback]);
|
||||
};
|
||||
|
||||
Server.prototype.kick = function kick(user, callback) {
|
||||
return this.client.kickMember.apply(this.client, [user, this, callback]);
|
||||
};
|
||||
|
||||
Server.prototype.getBans = function getBans() {
|
||||
return this.client.getBans.apply(this.client, _UtilArgumentRegulariser.reg(this, arguments));
|
||||
};
|
||||
|
||||
Server.prototype.createChannel = function createChannel() {
|
||||
return this.client.createChannel.apply(this.client, _UtilArgumentRegulariser.reg(this, arguments));
|
||||
};
|
||||
|
||||
_createClass(Server, [{
|
||||
key: "iconURL",
|
||||
get: function get() {
|
||||
@@ -209,6 +253,16 @@ var Server = (function (_Equality) {
|
||||
get: function get() {
|
||||
return this.channels.get("id", this.id);
|
||||
}
|
||||
}, {
|
||||
key: "generalChannel",
|
||||
get: function get() {
|
||||
return this.defaultChannel;
|
||||
}
|
||||
}, {
|
||||
key: "general",
|
||||
get: function get() {
|
||||
return this.defaultChannel;
|
||||
}
|
||||
}, {
|
||||
key: "owner",
|
||||
get: function get() {
|
||||
|
||||
Reference in New Issue
Block a user