Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/wackford/discordeno.ts>getAvatarURL

The wackiest Discord bot framework for Deno powered by Discordeno
Go to Latest
function getAvatarURL
import { getAvatarURL } from "https://deno.land/x/wackford@v0.0.1/discordeno.ts";

Builds a URL to a user's avatar stored in the Discord CDN.

Parameters

bot: Bot
  • The bot instance to use to build the URL.
userId: BigString
  • The ID of the user to get the avatar of.
discriminator: string
  • The user's discriminator. (4-digit tag after the hashtag.)
optional
options: { avatar: BigString | undefined; size?: ImageSize; format?: ImageFormat; }
  • The parameters for the building of the URL.

Returns

string

The link to the resource.