Files
Discord.Net/src/Discord.Net.Rest/API/Common/InviteChannel.cs
Still Hsu ffe994a9df Mark guild optional in invite & general invite improvement (#1094)
* 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
2018-07-02 17:02:38 -04:00

16 lines
334 B
C#

#pragma warning disable CS1591
using Newtonsoft.Json;
namespace Discord.API
{
internal class InviteChannel
{
[JsonProperty("id")]
public ulong Id { get; set; }
[JsonProperty("name")]
public string Name { get; set; }
[JsonProperty("type")]
public int Type { get; set; }
}
}