Class BaseUserControls

The base controls for interacting with users.

Hierarchy (view full)

Methods

  • Fetch a user's subreddit.

    Parameters

    • username: string

      The user who's subreddit to fetch.

    Returns Promise<Subreddit>

    A promise that resolves to the user's subreddit.

  • Namespace an id with the proper prefix for its type.

    Parameters

    • id: string

      The ID to namespace.

    Returns string

    The namespaced version of the id.

Generated using TypeDoc