function fetchAvatar
fetchAvatar(url: string): Promise<Uint8Array>

Returns the image at url, a user's avatar on their home instance, up to the size an avatar may be.

Parameters

url: string

Return Type

Promise<Uint8Array>

Throws

Error

When it can't be fetched.

Usage

import { fetchAvatar } from "api/remote/gerbeur-instance.ts";