Discore
Show / Hide Table of Contents

Method ForUserAvatar

| Improve this Doc View Source

ForUserAvatar(Snowflake, string)

Creates a CDN URL builder for a user avatar.

Declaration
public static DiscordCdnUrl ForUserAvatar(Snowflake userId, string avatarHash)
Parameters
Type Name Description
Snowflake userId

The ID of the user.

string avatarHash

The avatar hash for the user.

Returns
Type Description
DiscordCdnUrl
Exceptions
Type Condition
ArgumentNullException

Thrown if avatarHash is null.

  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX