[Feature] Modify guild features (#2605)

* initial commit

* Update src/Discord.Net.Core/Entities/Guilds/GuildProperties.cs

---------

Co-authored-by: Casmir <68127614+csmir@users.noreply.github.com>
This commit is contained in:
Misha133
2023-02-19 23:41:14 +03:00
committed by GitHub
parent 50c3974aca
commit 177df2ce70
5 changed files with 64 additions and 4 deletions

View File

@@ -34,11 +34,11 @@ namespace Discord
/// </summary>
Commerce = 1L << 4,
/// <summary>
/// The guild can enable welcome screen, Membership Screening, stage channels and discovery, and receives community updates.
/// The guild can enable welcome screen, Membership Screening, stage channels and discovery, and receives community updates. This feature is mutable.
/// </summary>
Community = 1L << 5,
/// <summary>
/// The guild is able to be discovered in the directory.
/// The guild is able to be discovered in the directory. This feature is mutable.
/// </summary>
Discoverable = 1L << 6,
/// <summary>
@@ -185,5 +185,13 @@ namespace Discord
/// The guild has been set as a support server on the App Directory.
/// </summary>
DeveloperSupportServer = 1L << 42,
/// <summary>
/// The guild has invites disabled. This feature is mutable.
/// </summary>
InvitesDisabled = 1L << 43,
/// <summary>
/// The guild has auto moderation enabled.
/// </summary>
AutoModeration = 1L << 44
}
}

View File

@@ -113,5 +113,10 @@ namespace Discord
/// Gets or sets if the boost progress bar is enabled.
/// </summary>
public Optional<bool> IsBoostProgressBarEnabled { get; set; }
/// <summary>
/// Gets or sets the guild features enabled in this guild. Features that are not mutable will be ignored.
/// </summary>
public Optional<GuildFeature> Features { get; set; }
}
}