Browse Source

Add new properties to the updated models

pull/1319/head
Chris Johnston 6 years ago
parent
commit
0a5ad035f3
2 changed files with 10 additions and 1 deletions
  1. +7
    -0
      src/Discord.Net.Rest/API/Common/Guild.cs
  2. +3
    -1
      src/Discord.Net.Rest/API/Common/GuildMember.cs

+ 7
- 0
src/Discord.Net.Rest/API/Common/Guild.cs View File

@@ -45,5 +45,12 @@ namespace Discord.API
public ulong? ApplicationId { get; set; }
[JsonProperty("system_channel_id")]
public ulong? SystemChannelId { get; set; }
[JsonProperty("premium_tier")]
public int PremiumTier { get; set; }
[JsonProperty("vanity_url_code")]
public string VanityURLCode { get; set; }
// this value is inverted, flags set will turn OFF features
[JsonProperty("system_channel_flags")]
public int SystemChannelFlags { get; set; }
}
}

+ 3
- 1
src/Discord.Net.Rest/API/Common/GuildMember.cs View File

@@ -1,4 +1,4 @@
#pragma warning disable CS1591
#pragma warning disable CS1591
using Newtonsoft.Json;
using System;

@@ -18,5 +18,7 @@ namespace Discord.API
public Optional<bool> Deaf { get; set; }
[JsonProperty("mute")]
public Optional<bool> Mute { get; set; }
[JsonProperty("premium_guild_since")]
public Optional<DateTime> PremiumSince { get; set; }
}
}

Loading…
Cancel
Save