From c1eaa78ab7cef55f2a4dcb36d0876963d42ef1ec Mon Sep 17 00:00:00 2001 From: BannerBomb Date: Thu, 8 Jul 2021 10:39:23 -0400 Subject: [PATCH] typings(GuildInviteManager): FetchInvitesOptions (#6076) --- src/managers/GuildInviteManager.js | 5 +++-- typings/index.d.ts | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) 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; }