mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-16 03:23:29 +01:00
typings(GuildInviteManager): FetchInvitesOptions (#6076)
This commit is contained in:
@@ -67,7 +67,8 @@ class GuildInviteManager extends CachedManager {
|
|||||||
/**
|
/**
|
||||||
* Options used to fetch all invites from a guild.
|
* Options used to fetch all invites from a guild.
|
||||||
* @typedef {Object} FetchInvitesOptions
|
* @typedef {Object} FetchInvitesOptions
|
||||||
* @property {boolean} cache Whether or not to cache the fetched invites
|
* @property {GuildChannelResolvable} [channelId] The channel to fetch all invites from
|
||||||
|
* @property {boolean} [cache=true] Whether or not to cache the fetched invites
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -86,7 +87,7 @@ class GuildInviteManager extends CachedManager {
|
|||||||
* .catch(console.error);
|
* .catch(console.error);
|
||||||
* @example
|
* @example
|
||||||
* // Fetch all invites from a channel
|
* // Fetch all invites from a channel
|
||||||
* guild.invites.fetch({ channelID, '222197033908436994' })
|
* guild.invites.fetch({ channelId: '222197033908436994' })
|
||||||
* .then(console.log)
|
* .then(console.log)
|
||||||
* .catch(console.error);
|
* .catch(console.error);
|
||||||
* @example
|
* @example
|
||||||
|
|||||||
2
typings/index.d.ts
vendored
2
typings/index.d.ts
vendored
@@ -3059,7 +3059,7 @@ interface FetchInviteOptions extends BaseFetchOptions {
|
|||||||
}
|
}
|
||||||
|
|
||||||
interface FetchInvitesOptions {
|
interface FetchInvitesOptions {
|
||||||
channelID?: Snowflake;
|
channelId?: GuildChannelResolvable;
|
||||||
cache?: boolean;
|
cache?: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user