mirror of
https://github.com/danbulant/discord.js
synced 2026-06-24 17:21:59 +00:00
Webpack build for branch master: 134ef7a61b
This commit is contained in:
parent
cbc26ef61b
commit
760efcd267
1 changed files with 9 additions and 3 deletions
|
|
@ -4928,10 +4928,16 @@ class Guild extends Base {
|
||||||
return this.members.resolve(user);
|
return this.members.resolve(user);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* An object containing information about a guild member's ban.
|
||||||
|
* @typedef {Object} BanInfo
|
||||||
|
* @property {User} user User that was banned
|
||||||
|
* @property {?string} reason Reason the user was banned
|
||||||
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Fetches a collection of banned users in this guild.
|
* Fetches a collection of banned users in this guild.
|
||||||
* The returned collection contains user objects keyed under `user` and reasons keyed under `reason`.
|
* @returns {Promise<Collection<Snowflake, BanInfo>>}
|
||||||
* @returns {Promise<Collection<Snowflake, Object>>}
|
|
||||||
*/
|
*/
|
||||||
fetchBans() {
|
fetchBans() {
|
||||||
return this.client.api.guilds(this.id).bans.get().then(bans =>
|
return this.client.api.guilds(this.id).bans.get().then(bans =>
|
||||||
|
|
@ -4993,7 +4999,7 @@ class Guild extends Base {
|
||||||
* @param {Snowflake|GuildAuditLogsEntry} [options.after] Limit to entries from after specified entry
|
* @param {Snowflake|GuildAuditLogsEntry} [options.after] Limit to entries from after specified entry
|
||||||
* @param {number} [options.limit] Limit number of entries
|
* @param {number} [options.limit] Limit number of entries
|
||||||
* @param {UserResolvable} [options.user] Only show entries involving this user
|
* @param {UserResolvable} [options.user] Only show entries involving this user
|
||||||
* @param {ActionType|number} [options.type] Only show entries involving this action type
|
* @param {AuditLogAction|number} [options.type] Only show entries involving this action type
|
||||||
* @returns {Promise<GuildAuditLogs>}
|
* @returns {Promise<GuildAuditLogs>}
|
||||||
*/
|
*/
|
||||||
fetchAuditLogs(options = {}) {
|
fetchAuditLogs(options = {}) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue