mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 08:33:30 +01:00
Finished server shortcuts
I think
This commit is contained in:
@@ -149,5 +149,45 @@ export default class Server extends Equality {
|
||||
createRole() {
|
||||
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