mirror of
https://github.com/danbulant/discord.js
synced 2026-06-09 01:31:29 +00:00
Fix errant parentheses in getBans, fixes #111
This commit is contained in:
parent
9325e1fbb5
commit
d2473044e5
1 changed files with 3 additions and 5 deletions
|
|
@ -490,11 +490,9 @@ export default class InternalClient {
|
||||||
server = this.resolver.resolveServer(server);
|
server = this.resolver.resolveServer(server);
|
||||||
|
|
||||||
return this.apiRequest("get", Endpoints.SERVER_BANS(server.id), true)
|
return this.apiRequest("get", Endpoints.SERVER_BANS(server.id), true)
|
||||||
.then(res => {
|
.then(res => res.map(
|
||||||
res.map(ban => {
|
ban => this.users.add(new User(ban.user, this.client))
|
||||||
return this.users.add(new User(ban.user, this.client));
|
));
|
||||||
});
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// def createChannel
|
// def createChannel
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue