SW Combine SDK
    Preparing search index...

    Faction resource for managing factions

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    Methods

    • Get faction by UID @requires_auth Yes @requires_scope FACTION_READ

      Parameters

      • Optionaloptions: GetFactionOptions

        Optional faction UID. If omitted or uid not provided, returns the authenticated user's primary faction.

      Returns Promise<Faction>

      // Get a specific faction
      const faction = await client.faction.get({ uid: '20:123' });
      // Get the authenticated user's faction
      const myFaction = await client.faction.get();
    • List all factions (paginated) @requires_auth No

      Parameters

      • Optionaloptions: { item_count?: number; start_index?: number }

        Optional pagination parameters

      Returns Promise<Faction[]>

      const factions = await client.faction.list();
      const moreFactions = await client.faction.list({ start_index: 51, item_count: 50 });