Skip to main content

Class GameAsset

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

Assembly: Discord.Net.Core.dll​
View Source​
Declaration
public class GameAsset

Properties​

Text​

Gets the description of the asset.

View Source​
Declaration
public string Text { get; }

ImageId​

Gets the image ID of the asset.

View Source​
Declaration
public string ImageId { get; }

Methods​

GetImageUrl(ImageFormat, UInt16)​

Returns the image URL of the asset.

View Source​
Declaration
public string GetImageUrl(ImageFormat format = ImageFormat.Auto, ushort size = 128)
Returns​

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

Parameters​
TypeNameDescription
Discord.ImageFormatformatThe format to return.
System.UInt16sizeThe size of the image to return in. This can be any power of two between 16 and 2048.