|
@@ -1,14 +1,18 @@ |
|
|
namespace Discord |
|
|
namespace Discord |
|
|
{ |
|
|
{ |
|
|
|
|
|
/// <summary> The asset for a <see cref="RichGame"/> object. </summary> |
|
|
public class GameAsset |
|
|
public class GameAsset |
|
|
{ |
|
|
{ |
|
|
internal GameAsset() { } |
|
|
internal GameAsset() { } |
|
|
|
|
|
|
|
|
internal ulong? ApplicationId { get; set; } |
|
|
internal ulong? ApplicationId { get; set; } |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary> The description of the asset. </summary> |
|
|
public string Text { get; internal set; } |
|
|
public string Text { get; internal set; } |
|
|
|
|
|
/// <summary> The image ID of the asset. </summary> |
|
|
public string ImageId { get; internal set; } |
|
|
public string ImageId { get; internal set; } |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary> The image URL of the asset; may return null when the application ID does not exist.</summary> |
|
|
public string GetImageUrl(ImageFormat format = ImageFormat.Auto, ushort size = 128) |
|
|
public string GetImageUrl(ImageFormat format = ImageFormat.Auto, ushort size = 128) |
|
|
=> ApplicationId.HasValue ? CDN.GetRichAssetUrl(ApplicationId.Value, ImageId, size, format) : null; |
|
|
=> ApplicationId.HasValue ? CDN.GetRichAssetUrl(ApplicationId.Value, ImageId, size, format) : null; |
|
|
} |
|
|
} |
|
|