towerstats.js
    Preparing search index...

    Class TowerStatsClient

    TowerStats API client.

    Index

    Constructors

    Properties

    cache: CacheManager

    This client's cache manager.

    Methods

    • Check a user's badges.

      Parameters

      • userId: number

        The Roblox user ID.

      • badgeIds: number[]

        An array of badge IDs to check if the user owns them.

      Returns Promise<CheckedBadges>

      An array of checked badge objects specifying whether the user owns that badge or not. (If they do, it includes the date of which they earned the badge.)

    • Get the TowerStats API key provided to the client.

      Returns string

      The API key.

    • Get a user's followers list.

      Parameters

      • userId: number

        The Roblox user ID.

      Returns Promise<UserIdsArray>

      An array of Roblox user IDs.

    • Get a user's following list.

      Parameters

      • userId: number

        The Roblox user ID.

      Returns Promise<UserIdsArray>

      An array of Roblox user IDs.

    • Swap the current API key with a different one.

      Parameters

      • apiKey: string

      Returns void