Class UserControls

Various methods to allow you to interact with users.

Hierarchy (view full)

Methods

  • Fetch a user from Reddit.

    Parameters

    • username: string

      The name of the user to fetch.

    Returns Promise<User>

    The user.

    Note

    If the username you fetch is the same as the authorized user this will return a MyUser instance. Otherwise it will be an instance of OtherUser. To tell dynamically you can use User.isMe.

  • Check whether whether or not a username is available.

    Parameters

    • username: string

      The username to check.

    Returns Promise<boolean>

    Whether or not the username is available.

Generated using TypeDoc