feature: Add missing application properties (including Teams) (#1604)
* Add missing application properties Add IsBotPublic, BotRequiresCodeGrant, and Team properties to IApplication * To immutable list * Change list to array
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
#pragma warning disable CS1591
|
||||
#pragma warning disable CS1591
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace Discord.API
|
||||
@@ -15,6 +15,12 @@ namespace Discord.API
|
||||
public ulong Id { get; set; }
|
||||
[JsonProperty("icon")]
|
||||
public string Icon { get; set; }
|
||||
[JsonProperty("bot_public")]
|
||||
public bool IsBotPublic { get; set; }
|
||||
[JsonProperty("bot_require_code_grant")]
|
||||
public bool BotRequiresCodeGrant { get; set; }
|
||||
[JsonProperty("team")]
|
||||
public Optional<Team> Team { get; set; }
|
||||
|
||||
[JsonProperty("flags"), Int53]
|
||||
public Optional<ulong> Flags { get; set; }
|
||||
|
||||
Reference in New Issue
Block a user