mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 00:23:30 +01:00
Fix errant parentheses in getBans, fixes #111
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user