@@ -0,0 +1,13 @@ | |||||
namespace Discord | |||||
{ | |||||
public enum ExplicitContentFilterLevel | |||||
{ | |||||
/// <summary> No messages will be scanned. </summary> | |||||
Disabled = 0, | |||||
/// <summary> Scans messages from all guild members that do not have a role. </summary> | |||||
/// <remarks> Recommented option for servers that use roles for trusted membership. </remarks> | |||||
MembersWithoutRoles = 1, | |||||
/// <summary> Scan messages sent by all guild members. </summary> | |||||
AllMembers = 2 | |||||
} | |||||
} |
@@ -1,4 +1,4 @@ | |||||
#pragma warning disable CS1591 | |||||
#pragma warning disable CS1591 | |||||
using Newtonsoft.Json; | using Newtonsoft.Json; | ||||
namespace Discord.API | namespace Discord.API | ||||
@@ -41,5 +41,7 @@ namespace Discord.API | |||||
public MfaLevel MfaLevel { get; set; } | public MfaLevel MfaLevel { get; set; } | ||||
[JsonProperty("default_message_notifications")] | [JsonProperty("default_message_notifications")] | ||||
public DefaultMessageNotifications DefaultMessageNotifications { get; set; } | public DefaultMessageNotifications DefaultMessageNotifications { get; set; } | ||||
[JsonProperty("explicit_content_filter")] | |||||
public ExplicitContentFilterLevel ExplicitContentFilter { get; set; } | |||||
} | } | ||||
} | } |
@@ -32,6 +32,7 @@ namespace Discord.Rest | |||||
public MfaLevel MfaLevel { get; private set; } | public MfaLevel MfaLevel { get; private set; } | ||||
/// <inheritdoc /> | /// <inheritdoc /> | ||||
public DefaultMessageNotifications DefaultMessageNotifications { get; private set; } | public DefaultMessageNotifications DefaultMessageNotifications { get; private set; } | ||||
public ExplicitContentFilterLevel ExplicitContentFilter { get; private set; } | |||||
/// <inheritdoc /> | /// <inheritdoc /> | ||||
public ulong? AFKChannelId { get; private set; } | public ulong? AFKChannelId { get; private set; } | ||||
@@ -98,6 +99,7 @@ namespace Discord.Rest | |||||
VerificationLevel = model.VerificationLevel; | VerificationLevel = model.VerificationLevel; | ||||
MfaLevel = model.MfaLevel; | MfaLevel = model.MfaLevel; | ||||
DefaultMessageNotifications = model.DefaultMessageNotifications; | DefaultMessageNotifications = model.DefaultMessageNotifications; | ||||
ExplicitContentFilter = model.ExplicitContentFilter; | |||||
if (model.Emojis != null) | if (model.Emojis != null) | ||||
{ | { | ||||
@@ -50,6 +50,8 @@ namespace Discord.WebSocket | |||||
public MfaLevel MfaLevel { get; private set; } | public MfaLevel MfaLevel { get; private set; } | ||||
/// <inheritdoc /> | /// <inheritdoc /> | ||||
public DefaultMessageNotifications DefaultMessageNotifications { get; private set; } | public DefaultMessageNotifications DefaultMessageNotifications { get; private set; } | ||||
/// <inheritdoc /> | |||||
public ExplicitContentFilterLevel ExplicitContentFilter { get; private set; } | |||||
/// <summary> | /// <summary> | ||||
/// Gets the number of members. | /// Gets the number of members. | ||||
/// </summary> | /// </summary> | ||||
@@ -346,6 +348,7 @@ namespace Discord.WebSocket | |||||
VerificationLevel = model.VerificationLevel; | VerificationLevel = model.VerificationLevel; | ||||
MfaLevel = model.MfaLevel; | MfaLevel = model.MfaLevel; | ||||
DefaultMessageNotifications = model.DefaultMessageNotifications; | DefaultMessageNotifications = model.DefaultMessageNotifications; | ||||
ExplicitContentFilter = model.ExplicitContentFilter; | |||||
if (model.Emojis != null) | if (model.Emojis != null) | ||||
{ | { | ||||