From f060a3fcd7e1ad30789d582e8baf28dbdddf8063 Mon Sep 17 00:00:00 2001 From: Jiralite <33201955+Jiralite@users.noreply.github.com> Date: Wed, 28 Jul 2021 20:04:51 +0100 Subject: [PATCH] fix: Use `string` instead of `Snowflake` for invites (#6202) --- src/managers/GuildInviteManager.js | 4 ++-- typings/index.d.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/managers/GuildInviteManager.js b/src/managers/GuildInviteManager.js index 1317e9e04658..741feb378147 100644 --- a/src/managers/GuildInviteManager.js +++ b/src/managers/GuildInviteManager.js @@ -23,7 +23,7 @@ class GuildInviteManager extends CachedManager { /** * The cache of this Manager - * @type {Collection} + * @type {Collection} * @name GuildInviteManager#cache */ @@ -74,7 +74,7 @@ class GuildInviteManager extends CachedManager { /** * Fetches invite(s) from Discord. * @param {InviteResolvable|FetchInviteOptions|FetchInvitesOptions} [options] Options for fetching guild invite(s) - * @returns {Promise>} + * @returns {Promise>} * @example * // Fetch all invites from a guild * guild.invites.fetch() diff --git a/typings/index.d.ts b/typings/index.d.ts index 281fa3a2e91c..3a7089af8648 100644 --- a/typings/index.d.ts +++ b/typings/index.d.ts @@ -2351,7 +2351,7 @@ export class GuildBanManager extends CachedManager; } -export class GuildInviteManager extends DataManager { +export class GuildInviteManager extends DataManager { public constructor(guild: Guild, iterable?: Iterable); public guild: Guild; public create(channel: GuildChannelResolvable, options?: CreateInviteOptions): Promise;