mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-17 12:03:31 +01:00
Finished server shortcuts
I think
This commit is contained in:
@@ -149,5 +149,45 @@ export default class Server extends Equality {
|
|||||||
createRole() {
|
createRole() {
|
||||||
return this.client.createRole.apply(this.client, reg(this, arguments));
|
return this.client.createRole.apply(this.client, reg(this, arguments));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
banMember(user, tlength, callback) {
|
||||||
|
return this.client.banMember.apply(this.client, [user, this, tlength, callback]);
|
||||||
|
}
|
||||||
|
|
||||||
|
banUser(user, tlength, callback) {
|
||||||
|
return this.client.banMember.apply(this.client, [user, this, tlength, callback]);
|
||||||
|
}
|
||||||
|
|
||||||
|
ban(user, tlength, callback) {
|
||||||
|
return this.client.banMember.apply(this.client, [user, this, tlength, callback]);
|
||||||
|
}
|
||||||
|
|
||||||
|
unbanMember(user, callback) {
|
||||||
|
return this.client.unbanMember.apply(this.client, [user, this, callback]);
|
||||||
|
}
|
||||||
|
|
||||||
|
unbanUser(user, callback) {
|
||||||
|
return this.client.unbanMember.apply(this.client, [user, this, callback]);
|
||||||
|
}
|
||||||
|
|
||||||
|
unban(user, callback) {
|
||||||
|
return this.client.unbanMember.apply(this.client, [user, this, callback]);
|
||||||
|
}
|
||||||
|
|
||||||
|
kickMember(user, callback) {
|
||||||
|
return this.client.kickMember.apply(this.client, [user, this, callback]);
|
||||||
|
}
|
||||||
|
|
||||||
|
kickUser(user, callback) {
|
||||||
|
return this.client.kickMember.apply(this.client, [user, this, callback]);
|
||||||
|
}
|
||||||
|
|
||||||
|
kick(user, callback) {
|
||||||
|
return this.client.kickMember.apply(this.client, [user, this, callback]);
|
||||||
|
}
|
||||||
|
|
||||||
|
getBans(callback) {
|
||||||
|
return this.client.getBans.apply(this.client, [this, callback]);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user