Table of Contents

Class GameAsset

Namespace
Discord
Assembly
Discord.Net.Core.dll

An asset for a RichGame object containing the text and image.

public class GameAsset
Inheritance
GameAsset
Inherited Members

Properties

ImageId

Gets the image ID of the asset.

public string ImageId { get; }

Property Value

string

A string containing the unique image identifier of the asset.

Text

Gets the description of the asset.

public string Text { get; }

Property Value

string

A string containing the description of the asset.

Methods

GetImageUrl(ImageFormat, ushort)

Returns the image URL of the asset.

public string GetImageUrl(ImageFormat format = ImageFormat.Auto, ushort size = 128)

Parameters

format ImageFormat

The format to return.

size ushort

The size of the image to return in. This can be any power of two between 16 and 2048.

Returns

string

A string pointing to the image URL of the asset; null when the application ID does not exist.