Skip to content

Commit

Permalink
fix: Use string instead of Snowflake for invites (#6202)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jiralite committed Jul 28, 2021
1 parent 5e433b5 commit f060a3f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/managers/GuildInviteManager.js
Expand Up @@ -23,7 +23,7 @@ class GuildInviteManager extends CachedManager {

/**
* The cache of this Manager
* @type {Collection<Snowflake, Invite>}
* @type {Collection<string, Invite>}
* @name GuildInviteManager#cache
*/

Expand Down Expand Up @@ -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<Invite|Collection<Snowflake, Invite>>}
* @returns {Promise<Invite|Collection<string, Invite>>}
* @example
* // Fetch all invites from a guild
* guild.invites.fetch()
Expand Down
2 changes: 1 addition & 1 deletion typings/index.d.ts
Expand Up @@ -2351,7 +2351,7 @@ export class GuildBanManager extends CachedManager<Snowflake, GuildBan, GuildBan
public remove(user: UserResolvable, reason?: string): Promise<User>;
}

export class GuildInviteManager extends DataManager<Snowflake, Invite, InviteResolvable> {
export class GuildInviteManager extends DataManager<string, Invite, InviteResolvable> {
public constructor(guild: Guild, iterable?: Iterable<unknown>);
public guild: Guild;
public create(channel: GuildChannelResolvable, options?: CreateInviteOptions): Promise<Invite>;
Expand Down

0 comments on commit f060a3f

Please sign in to comment.