Class GlobalGroupManager

Manager for interacting with Groups on Guilded.

Hierarchy

Constructors

Properties

cache: Collection<string, Group> = ...
client: Client

Methods

  • Adds a member to a group.

    Parameters

    • groupId: string

      The ID of the group.

    • userId: string

      The ID of the user to add.

    Returns Promise<void>

    A Promise that resolves when the operation is complete.

  • Creates a group.

    Parameters

    • serverId: string

      The ID of the server to create the group in.

    • options: {}

      The options for the group to create.

      Returns Promise<Group>

      A Promise that resolves with the created group.

    • Delete a group

      Parameters

      • serverId: string

        The ID of the server to delete the group from.

      • groupId: string

        The ID of the group to delete.

      Returns Promise<void>

      A Promise that resolves when the operation is complete.

    • Fetch a group

      Parameters

      • serverId: string

        The ID of the server to fetch the group from.

      • groupId: string

        The ID of the group to fetch.

      Returns Promise<Group>

      A Promise that resolves with the fetched group.

    • Fetch all the groups in a server

      Parameters

      • serverId: string

        The ID of the server to fetch the groups from.

      Returns Promise<Collection<string, Group>>

      A Promise that resolves a Collection containing the fetched groups.

    • Removes a member from a group.

      Parameters

      • groupId: string

        The ID of the group.

      • userId: string

        The ID of the user to remove.

      Returns Promise<void>

      A Promise that resolves when the operation is complete.

    • Update a group

      Parameters

      • serverId: string

        The ID of the server to update the group in.

      • groupId: string

        The ID of the group to update.

      • options: {}

        The options to update the group with.

        Returns Promise<Group>

        A Promise that resolves with the updated group.

      Generated using TypeDoc