diff --git a/src/managers/GuildInviteManager.js b/src/managers/GuildInviteManager.js index ea4f1dccb..fb28fdaa9 100644 --- a/src/managers/GuildInviteManager.js +++ b/src/managers/GuildInviteManager.js @@ -67,7 +67,8 @@ class GuildInviteManager extends CachedManager { /** * Options used to fetch all invites from a guild. * @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); * @example * // Fetch all invites from a channel - * guild.invites.fetch({ channelID, '222197033908436994' }) + * guild.invites.fetch({ channelId: '222197033908436994' }) * .then(console.log) * .catch(console.error); * @example diff --git a/typings/index.d.ts b/typings/index.d.ts index a6148e948..934ed09d9 100644 --- a/typings/index.d.ts +++ b/typings/index.d.ts @@ -3059,7 +3059,7 @@ interface FetchInviteOptions extends BaseFetchOptions { } interface FetchInvitesOptions { - channelID?: Snowflake; + channelId?: GuildChannelResolvable; cache?: boolean; }