mirror of
https://github.com/danbulant/discord.js
synced 2026-05-26 13:32:04 +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);
|
||||
|
||||
return this.apiRequest("get", Endpoints.SERVER_BANS(server.id), true)
|
||||
.then(res => {
|
||||
res.map(ban => {
|
||||
return this.users.add(new User(ban.user, this.client));
|
||||
});
|
||||
});
|
||||
.then(res => res.map(
|
||||
ban => this.users.add(new User(ban.user, this.client))
|
||||
));
|
||||
}
|
||||
|
||||
// def createChannel
|
||||
|
|
|
|||
Loading…
Reference in a new issue