Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Go to Latest
method ClientUser.prototype.getImage
import { ClientUser } from "https://deno.land/x/discord_rpc_deno@1.0.11/src/structures/ClientUser.ts";

Used to get a user's avatar

Parameters

userId: string
  • id of the user to get the avatar of
optional
format: "png" | "webp" | "jpg" = [UNSUPPORTED]
  • image format
optional
size:
| 16
| 32
| 64
| 128
| 256
| 512
| 1024
= [UNSUPPORTED]
  • image size

Returns

Promise<string>

base64 encoded image data