A wrapper for the Foxogram channel API.

Constructors

Methods

  • Creates a new channel.

    Parameters

    • body: RESTPostAPIChannelBody

    Returns Promise<APIChannel>

  • Deletes the channel.

    Parameters

    • channelId: number

    Returns Promise<APIOk>

  • Edits the channel.

    Parameters

    • channelId: number
    • body: RESTPatchAPIChannelBody

    Returns Promise<APIChannel>

  • Fetches a channel.

    Parameters

    • channelId: number

    Returns Promise<APIChannel>

  • Joins the current user to the channel.

    Parameters

    • channelId: number

    Returns Promise<APIMember>

  • Leaves the current user to the channel.

    Parameters

    • channelId: number

    Returns Promise<APIOk>

  • Gets a member from the channel.

    Parameters

    • channelId: number
    • memberKey: MemberKey

    Returns Promise<APIMember>

  • Lists members in the channel.

    Parameters

    • channelId: number

    Returns Promise<RESTGetAPIChannelMembersResult>