Discore
Show / Hide Table of Contents

Method ForDefaultUserAvatar

| Improve this Doc View Source

ForDefaultUserAvatar(string)

Creates a CDN URL builder for a default user avatar.

Declaration
public static DiscordCdnUrl ForDefaultUserAvatar(string userDiscriminator)
Parameters
Type Name Description
string userDiscriminator

The original user discriminator.

Returns
Type Description
DiscordCdnUrl
Exceptions
Type Condition
ArgumentNullException

Thrown if userDiscriminator is null.

FormatException

Thrown if userDiscriminator is not a valid integer.

OverflowException

Thrown if userDiscriminator represents a number less than MinValue or greater than MaxValue.

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