Constructors

Methods

  • Parameters

    • __namedParameters: {
          auth: string;
          immediately?: boolean;
          subscriptionId: string;
      }
      • auth: string
      • Optionalimmediately?: boolean
      • subscriptionId: string

    Returns Promise<WebResponse<string>>

  • Parameters

    • __namedParameters: {
          includeUnreleased?: boolean;
          refreshCache?: boolean;
      }
      • OptionalincludeUnreleased?: boolean

        Include everything, not just what a customer should see: disabled tiers, inactive addons, features still launch-gated to 'off'/'beta', and rows flagged showOnPricing: false. For admin views; leave unset for the public pricing page.

      • OptionalrefreshCache?: boolean

        Misnomer kept for compatibility - it maps to the API's all flag and refreshes no cache. Use includeUnreleased.

    Returns Promise<WebResponse<PremiumPlans>>

  • Backend/support-bot variant: sync an arbitrary user's premium roles in the support server. Authenticated with the shared backend secret — pass auth as 'Bearer ' + NOTI_BACKEND_SECRET.

    Parameters

    • __namedParameters: {
          auth: string;
          discordId: string;
      }
      • auth: string
      • discordId: string

    Returns Promise<WebResponse<SyncSupportRolesResult>>