[Features] Automod member profile moderation, new application fields, use clyde ai & guild invenory settings (#2791)
* guild inventory settings * `UseClydeAI` (1L << 47) permission * automod member profile moderation * Dnet: The Enums update (new application fields) * ah yeah, `IApplication` * some oversights * y did I change this * oh bruh nvm * `CreateGuildExpressions` permission --------- Co-authored-by: Quin Lynch <49576606+quinchs@users.noreply.github.com>
This commit is contained in:
@@ -146,6 +146,9 @@ namespace Discord.WebSocket
|
||||
/// <inheritdoc/>
|
||||
public GuildIncidentsData IncidentsData { get; private set; }
|
||||
|
||||
/// <inheritdoc />
|
||||
public GuildInventorySettings? InventorySettings { get; private set; }
|
||||
|
||||
/// <inheritdoc />
|
||||
public DateTimeOffset CreatedAt => SnowflakeUtils.FromSnowflake(Id);
|
||||
/// <inheritdoc />
|
||||
@@ -571,6 +574,9 @@ namespace Discord.WebSocket
|
||||
PreferredCulture = PreferredLocale == null ? null : new CultureInfo(PreferredLocale);
|
||||
if (model.IsBoostProgressBarEnabled.IsSpecified)
|
||||
IsBoostProgressBarEnabled = model.IsBoostProgressBarEnabled.Value;
|
||||
if (model.InventorySettings.IsSpecified)
|
||||
InventorySettings = model.InventorySettings.Value is null ? null : new(model.InventorySettings.Value.IsEmojiPackCollectible.GetValueOrDefault(false));
|
||||
|
||||
IncidentsData = model.IncidentsData is not null
|
||||
? new GuildIncidentsData { DmsDisabledUntil = model.IncidentsData.DmsDisabledUntil, InvitesDisabledUntil = model.IncidentsData.InvitesDisabledUntil }
|
||||
: new GuildIncidentsData();
|
||||
|
||||
Reference in New Issue
Block a user