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
ImageFormatThe format to return.
size
ushortThe size of the image to return in. This can be any power of two between 16 and 2048.