* Mark guild as optional for invite * Mark partial InviteMetadata members as Optional<T> * Some of them aren't sent when requesting through the general GET invite endpoint * Remove GetInviteParams * It was kinda stupid in the first place, might as well always get the count instead of having to ask the user whether they want the two fields filled or not. * Add ChannelType property * Add vanity invite support
20 lines
583 B
C#
20 lines
583 B
C#
#pragma warning disable CS1591
|
|
using Newtonsoft.Json;
|
|
|
|
namespace Discord.API
|
|
{
|
|
internal class Invite
|
|
{
|
|
[JsonProperty("code")]
|
|
public string Code { get; set; }
|
|
[JsonProperty("guild")]
|
|
public Optional<InviteGuild> Guild { get; set; }
|
|
[JsonProperty("channel")]
|
|
public InviteChannel Channel { get; set; }
|
|
[JsonProperty("approximate_presence_count")]
|
|
public Optional<int?> PresenceCount { get; set; }
|
|
[JsonProperty("approximate_member_count")]
|
|
public Optional<int?> MemberCount { get; set; }
|
|
}
|
|
}
|