Class ReplyableControlsAbstract

The base controls for all content that you can reply to.

Hierarchy (view full)

Methods

  • Block the author of an item.

    Parameters

    • id: string

      The ID of the item to block the author of.

    Returns Promise<void>

    A promise that resolves when the request is complete.

    Note

    Apparently this only works if the item is in modmail or the user's inbox, and if it's not the request silently succeeds anyway.

  • 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.

  • Report an item to the mods.

    The report will be anonymous if you are not a mod of the subreddit. If you are a mod the report will be tied to your username.

    Parameters

    • id: string

      The ID of the item to report.

    • Optional reason: string

      The reason you are reporting the item.

    Returns Promise<void>

    A promise that resolves when the item has been reported.

Generated using TypeDoc