mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
Update Guild.js (#1545)
This commit is contained in:
@@ -373,7 +373,8 @@ class Guild {
|
||||
|
||||
/**
|
||||
* Fetch a collection of banned users in this guild.
|
||||
* @returns {Promise<Collection<Snowflake, User>>}
|
||||
* The returned collection contains user objects keyed under `user` and reasons keyed under `reason`.
|
||||
* @returns {Promise<Collection<Snowflake, Object>>}
|
||||
*/
|
||||
fetchBans() {
|
||||
return this.client.api.guilds(this.id).bans.get().then(bans =>
|
||||
|
||||
Reference in New Issue
Block a user