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:
17
src/Discord.Net.Rest/API/Common/TeamMember.cs
Normal file
17
src/Discord.Net.Rest/API/Common/TeamMember.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
#pragma warning disable CS1591
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace Discord.API
|
||||
{
|
||||
internal class TeamMember
|
||||
{
|
||||
[JsonProperty("membership_state")]
|
||||
public MembershipState MembershipState { get; set; }
|
||||
[JsonProperty("permissions")]
|
||||
public string[] Permissions { get; set; }
|
||||
[JsonProperty("team_id")]
|
||||
public ulong TeamId { get; set; }
|
||||
[JsonProperty("user")]
|
||||
public User User { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user