feature: Add role tags (#1721)
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
#pragma warning disable CS1591
|
||||
#pragma warning disable CS1591
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace Discord.API
|
||||
@@ -21,5 +21,7 @@ namespace Discord.API
|
||||
public ulong Permissions { get; set; }
|
||||
[JsonProperty("managed")]
|
||||
public bool Managed { get; set; }
|
||||
[JsonProperty("tags")]
|
||||
public Optional<RoleTags> Tags { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
15
src/Discord.Net.Rest/API/Common/RoleTags.cs
Normal file
15
src/Discord.Net.Rest/API/Common/RoleTags.cs
Normal file
@@ -0,0 +1,15 @@
|
||||
#pragma warning disable CS1591
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace Discord.API
|
||||
{
|
||||
internal class RoleTags
|
||||
{
|
||||
[JsonProperty("bot_id")]
|
||||
public Optional<ulong> BotId { get; set; }
|
||||
[JsonProperty("integration_id")]
|
||||
public Optional<ulong> IntegrationId { get; set; }
|
||||
[JsonProperty("premium_subscriber")]
|
||||
public Optional<bool?> IsPremiumSubscriber { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user