Browse Source

add the SystemChannelMessageDeny

unsure if there would be a better name for this enum, given it's inverted nature, open for suggestions
pull/1319/head
Chris Johnston 6 years ago
parent
commit
d021021bf2
2 changed files with 22 additions and 0 deletions
  1. +5
    -0
      src/Discord.Net.Core/Entities/Guilds/GuildProperties.cs
  2. +17
    -0
      src/Discord.Net.Core/Entities/Guilds/SystemChannelMessageDeny.cs

+ 5
- 0
src/Discord.Net.Core/Entities/Guilds/GuildProperties.cs View File

@@ -70,5 +70,10 @@ namespace Discord
/// Gets or sets the explicit content filter level of this guild. /// Gets or sets the explicit content filter level of this guild.
/// </summary> /// </summary>
public Optional<ExplicitContentFilterLevel> ExplicitContentFilter { get; set; } public Optional<ExplicitContentFilterLevel> ExplicitContentFilter { get; set; }
/// <summary>
/// Gets or sets the flags that DISABLE types of system channels.
/// This logic is inverted!
/// </summary>
public Optional<SystemChannelMessageDeny> SystemChannelFlags { get; set; }
} }
} }

+ 17
- 0
src/Discord.Net.Core/Entities/Guilds/SystemChannelMessageDeny.cs View File

@@ -0,0 +1,17 @@
using System;

namespace Discord
{
[Flags]
public enum SystemChannelMessageDeny
{
/// <summary>
/// The messages that are sent when a user joins the guild.
/// </summary>
WelcomeMessage = 0b1,
/// <summary>
/// The messages that are sent when a user boosts the guild.
/// </summary>
GuildBoost = 0b10
}
}

Loading…
Cancel
Save