GuildInviteManager

GuildInviteManager

Manages all invites within a guild.

Constructor

new GuildInviteManager(client, guild)

Description:
  • Creates a guild invite manager.

Source:
Parameters:
Name Type Description
client Client

The client instance.

guild Guild

The guild that this invite manager belongs to.

Methods

(async) fetch() → {Promise.<?Array.<Invite>>}

Description:
  • Fetches all invites for this guild.

Source:
Throws:
Error
Returns:

The fetched invites.

Type
Promise.<?Array.<Invite>>

set(code, invite) → {Invite}

Description:
  • Adds an invite to the cache.

Source:
Parameters:
Name Type Description
code String

The code of the invite to cache.

invite Invite

The invite to cache.

Throws:
TypeError
Returns:
Type
Invite