| @@ -20,7 +20,7 @@ namespace Discord | |||||
| /// <summary> Gets the level of requirements a user must fulfill before being allowed to post messages in this guild. </summary> | /// <summary> Gets the level of requirements a user must fulfill before being allowed to post messages in this guild. </summary> | ||||
| VerificationLevel VerificationLevel { get; } | VerificationLevel VerificationLevel { get; } | ||||
| /// <summary> Gets the level of content filtering applied to user's content in a Guild. </summary> | /// <summary> Gets the level of content filtering applied to user's content in a Guild. </summary> | ||||
| ExplicitContentFilterLevel ExplicitContentFilterLevel { get; } | |||||
| ExplicitContentFilterLevel ExplicitContentFilter { get; } | |||||
| /// <summary> Returns the id of this guild's icon, or null if one is not set. </summary> | /// <summary> Returns the id of this guild's icon, or null if one is not set. </summary> | ||||
| string IconId { get; } | string IconId { get; } | ||||
| /// <summary> Returns the url to this guild's icon, or null if one is not set. </summary> | /// <summary> Returns the url to this guild's icon, or null if one is not set. </summary> | ||||
| @@ -40,6 +40,8 @@ namespace Discord | |||||
| ulong? EmbedChannelId { get; } | ulong? EmbedChannelId { get; } | ||||
| /// <summary> Gets the id of the channel where randomized welcome messages are sent, or null if not. </summary> | /// <summary> Gets the id of the channel where randomized welcome messages are sent, or null if not. </summary> | ||||
| ulong? SystemChannelId { get; } | ulong? SystemChannelId { get; } | ||||
| /// <summary> Gets the application id of the guild creator if it is bot-created. </summary> | |||||
| ulong? ApplicationId { get; } | |||||
| /// <summary> Gets the id of the user that created this guild. </summary> | /// <summary> Gets the id of the user that created this guild. </summary> | ||||
| ulong OwnerId { get; } | ulong OwnerId { get; } | ||||
| /// <summary> Gets the id of the region hosting this guild's voice channels. </summary> | /// <summary> Gets the id of the region hosting this guild's voice channels. </summary> | ||||
| @@ -41,6 +41,8 @@ namespace Discord.API | |||||
| public string[] Features { get; set; } | public string[] Features { get; set; } | ||||
| [JsonProperty("mfa_level")] | [JsonProperty("mfa_level")] | ||||
| public MfaLevel MfaLevel { get; set; } | public MfaLevel MfaLevel { get; set; } | ||||
| [JsonProperty("application_id")] | |||||
| public ulong? ApplicationId { get; set; } | |||||
| [JsonProperty("system_channel_id")] | [JsonProperty("system_channel_id")] | ||||
| public ulong? SystemChannelId { get; set; } | public ulong? SystemChannelId { get; set; } | ||||
| } | } | ||||
| @@ -33,6 +33,7 @@ namespace Discord.Rest | |||||
| public string IconId { get; private set; } | public string IconId { get; private set; } | ||||
| public string SplashId { get; private set; } | public string SplashId { get; private set; } | ||||
| internal bool Available { get; private set; } | internal bool Available { get; private set; } | ||||
| public ulong? ApplicationId { get; private set; } | |||||
| public DateTimeOffset CreatedAt => SnowflakeUtils.FromSnowflake(Id); | public DateTimeOffset CreatedAt => SnowflakeUtils.FromSnowflake(Id); | ||||
| @@ -71,7 +72,8 @@ namespace Discord.Rest | |||||
| VerificationLevel = model.VerificationLevel; | VerificationLevel = model.VerificationLevel; | ||||
| MfaLevel = model.MfaLevel; | MfaLevel = model.MfaLevel; | ||||
| DefaultMessageNotifications = model.DefaultMessageNotifications; | DefaultMessageNotifications = model.DefaultMessageNotifications; | ||||
| ExplicitContentFilter = model.ExplicitContentFilter; | |||||
| ExplicitContentFilter = model.ExplicitContentFilter; | |||||
| ApplicationId = model.ApplicationId; | |||||
| if (model.Emojis != null) | if (model.Emojis != null) | ||||
| { | { | ||||
| @@ -45,6 +45,7 @@ namespace Discord.WebSocket | |||||
| public int DownloadedMemberCount { get; private set; } | public int DownloadedMemberCount { get; private set; } | ||||
| internal bool IsAvailable { get; private set; } | internal bool IsAvailable { get; private set; } | ||||
| public bool IsConnected { get; internal set; } | public bool IsConnected { get; internal set; } | ||||
| public ulong? ApplicationId { get; internal set; } | |||||
| internal ulong? AFKChannelId { get; private set; } | internal ulong? AFKChannelId { get; private set; } | ||||
| internal ulong? EmbedChannelId { get; private set; } | internal ulong? EmbedChannelId { get; private set; } | ||||
| @@ -212,6 +213,7 @@ namespace Discord.WebSocket | |||||
| MfaLevel = model.MfaLevel; | MfaLevel = model.MfaLevel; | ||||
| DefaultMessageNotifications = model.DefaultMessageNotifications; | DefaultMessageNotifications = model.DefaultMessageNotifications; | ||||
| ExplicitContentFilter = model.ExplicitContentFilter; | ExplicitContentFilter = model.ExplicitContentFilter; | ||||
| ApplicationId = model.ApplicationId; | |||||
| if (model.Emojis != null) | if (model.Emojis != null) | ||||
| { | { | ||||