Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
using System.Text.Json.Serialization;
using Color_Chan.Discord.Core.Common.API.DataModels;
using Color_Chan.Discord.Core.Common.API.DataModels.Embed;
using Color_Chan.Discord.Core.Common.API.DataModels.Message;

namespace Color_Chan.Discord.Core.Common.API.Params.Webhook;

Expand Down Expand Up @@ -40,4 +41,10 @@ public record DiscordEditWebhookMessage
/// </summary>
[JsonPropertyName("components")]
public IEnumerable<DiscordComponentData>? Components { get; set; }

/// <summary>
/// Message flags combined as a bitfield (SUPPRESS_EMBEDS and IS_COMPONENTS_V2 only)
/// </summary>
[JsonPropertyName("flags")]
public DiscordMessageFlags? Flags { get; set; }
}
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,8 @@ public async Task<ActionResult> HandleInteractionRequestAsync()
Content = responseData?.Content,
Embeds = responseData?.Embeds,
Components = responseData?.Components,
AllowedMentions = responseData?.AllowedMentions
AllowedMentions = responseData?.AllowedMentions,
Flags = responseData?.Flags,
};

_logger.LogDebug("Interaction {Id} : Editing original interaction response", interactionData.Id.ToString());
Expand Down
Loading