mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-17 20:13: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);
|
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
|
||||||
|
|||||||
Reference in New Issue
Block a user