GuildInviteManager

export class GuildInviteManager extends DataManager<string, Invite, InviteResolvable>
export class GuildInviteManager extends DataManager<string, Invite, InviteResolvable>
Manages API methods for GuildInvites and stores their cache.
Readonly
cache:Collection<K, Holds>
The cache of items for this manager.
Inherited from DataManager
Readonly
client:Client
The client that instantiated this Manager
Inherited from BaseManager
guild:Guild
The guild this Manager belongs to
Readonly
holds:Constructable<Holds>
The data structure belonging to this manager.
Inherited from DataManager
create(channel, options?):Promise<Invite>
Create an invite to the guild from the provided channel.
NameTypeOptionalDescription
channelGuildInvitableChannelResolvableNoThe options for creating the invite from a channel.
optionsInviteCreateOptionsYesThe options for creating the invite from a channel.
delete(invite, reason?):Promise<Invite>
Deletes an invite.
NameTypeOptionalDescription
inviteInviteResolvableNoThe invite to delete
reasonstringYesReason for deleting the invite
fetch(options):Promise<Invite>
Fetches invite(s) from Discord.
NameTypeOptionalDescription
optionsInviteResolvable | FetchInviteOptionsNoOptions for fetching guild invite(s)
resolve(idOrInstance):Holds
Resolves a data entry to a data Object.
Returns
An instance from this Manager
NameTypeOptionalDescription
idOrInstanceHoldsNoThe id or instance of something in this Manager
resolveId(idOrInstance):K
Resolves a data entry to an instance id.
Returns
NameTypeOptionalDescription
idOrInstanceK | HoldsNoThe id or instance of something in this Manager
valueOf():Collection<K, Holds>