mirror of
https://github.com/danbulant/discord.js
synced 2026-05-25 21:12:06 +00:00
Finished server shortcuts
I think
This commit is contained in:
parent
780565ff68
commit
05409ccc21
1 changed files with 40 additions and 0 deletions
|
|
@ -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]);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue