SW Combine SDK
    Preparing search index...

    Sim News resource

    Hierarchy (View Summary)

    Index

    Constructors

    Methods

    Constructors

    Methods

    • List Sim News items (paginated with optional filtering) @requires_auth No

      Parameters

      • Optionaloptions: ListSimNewsOptions

        Optional category, pagination, and filtering parameters

        SimNews listing options Uses only base options (no faction filtering)

        • Optionalauthor?: string

          Author name to filter by

        • Optionalcategory?: string

          News category to filter by

        • Optionalend_date?: number

          Filter news up to this Unix timestamp

        • Optionalitem_count?: number

          Number of items to retrieve. Default: 50, Max: 50

        • Search term to filter by

        • Optionalstart_date?: number

          Filter news starting from this Unix timestamp

        • Optionalstart_index?: number

          Starting position (1-based). Default: 1

      Returns Promise<NewsItem[]>

      const news = await client.news.simNews.list();
      const playerNews = await client.news.simNews.list({ category: 'player' });
      const moreNews = await client.news.simNews.list({ start_index: 51, item_count: 50 });
      const searchNews = await client.news.simNews.list({ search: 'update', author: 'Admin' });