Missing invite properties (#2615)

This commit is contained in:
Misha133
2023-02-27 16:06:58 +03:00
committed by GitHub
parent 76bb9018c4
commit abfa8d1751
15 changed files with 146 additions and 13 deletions

View File

@@ -21,11 +21,17 @@ namespace Discord.API.Gateway
public int MaxUses { get; set; }
[JsonProperty("target_user")]
public Optional<User> TargetUser { get; set; }
[JsonProperty("target_user_type")]
[JsonProperty("target_type")]
public Optional<TargetUserType> TargetUserType { get; set; }
[JsonProperty("temporary")]
public bool Temporary { get; set; }
[JsonProperty("uses")]
public int Uses { get; set; }
[JsonProperty("target_application")]
public Optional<Application> Application { get; set; }
[JsonProperty("expires_at")]
public Optional<DateTimeOffset?> ExpiresAt { get; set; }
}
}