[Feature] premium buttonz (#2933)

This commit is contained in:
Mihail Gribkov
2024-06-14 00:43:11 +03:00
committed by GitHub
parent f7f29d5cc8
commit 531b5eb3b7
12 changed files with 1825 additions and 1718 deletions

View File

@@ -25,6 +25,9 @@ namespace Discord.API
[JsonProperty("disabled")]
public Optional<bool> Disabled { get; set; }
[JsonProperty("sku_id")]
public Optional<ulong> SkuId { get; set; }
public ButtonComponent() { }
public ButtonComponent(Discord.ButtonComponent c)
@@ -35,6 +38,7 @@ namespace Discord.API
CustomId = c.CustomId;
Url = c.Url;
Disabled = c.IsDisabled;
SkuId = c.SkuId ?? Optional<ulong>.Unspecified;
if (c.Emote != null)
{