Represents a group on Guilded.

Example

new Group(client, rawGroup);

Hierarchy

Constructors

Properties

Accessors

Methods

Constructors

  • Parameters

    • client: Client

      The client the group belongs to.

    • raw: {
          id: string;
      }

      The raw data of the group.

      • id: string
    • Optional cache: boolean

      Whether to cache the group.

    Returns Group

Properties

client: Client
id: string

The manager of members that belong to the group.

raw: {
    id: string;
}

Type declaration

  • id: string

Accessors

  • get isCached(): boolean
  • Whether the group is cached.

    Returns boolean

Methods

  • Add a member to the group.

    Example

    group.addMember(member);
    

    Parameters

    Returns Promise<void>

  • Create a channel in the group.

    Returns

    The created channel.

    Example

    group.createChannel({ name: 'Chat', type: 'chat' });
    

    Parameters

    Returns Promise<Channel>

  • Fetch the group.

    Returns

    The fetched group.

    Example

    group.fetch();
    

    Parameters

    • Optional options: FetchOptions

      The options to fetch the group with.

    Returns Group

  • Remove a member from the group.

    Example

    group.removeMember(member);
    

    Parameters

    Returns Promise<void>