Discore
Show / Hide Table of Contents

Method ForRoleIcon

| Improve this Doc View Source

ForRoleIcon(Snowflake, string)

Creates a CDN URL builder for a role icon.

Declaration
public static DiscordCdnUrl ForRoleIcon(Snowflake roleId, string iconHash)
Parameters
Type Name Description
Snowflake roleId

The ID of the role.

string iconHash

The hash of the role's icon.

Returns
Type Description
DiscordCdnUrl
Exceptions
Type Condition
ArgumentNullException

Thrown if iconHash is null.

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