GuildManager

GuildManager

Manages all guilds belonging to this client.

Constructor

new GuildManager(client)

Description:
  • Creates a guild manager.

Source:
Parameters:
Name Type Description
client Client

The client instance.

Methods

(static) getCacheManager(client) → {GuildManager}

Description:
  • Returns the cache manager.

Source:
Parameters:
Name Type Description
client Client

The client instance.

Returns:
Type
GuildManager

set(id, guild) → {Guild}

Description:
  • Adds a guild to the cache.

Source:
Parameters:
Name Type Description
id String

The ID of the guild to cache

guild Guild

The guild to cache.

Throws:
TypeError
Returns:
Type
Guild