6
2026-01-24 12:49:55 +03:00

22 lines
472 B
C#

using System.Text.Json.Serialization;
namespace Content.Server.Discord;
public struct WebhookMentions
{
[JsonPropertyName("parse")]
public HashSet<string> Parse { get; set; } = new();
[JsonPropertyName("roles")] // Frontier: allow specific roles
public HashSet<string> Roles { get; set; } = new(); // Frontier: allow specific roles
public WebhookMentions()
{
}
public void AllowRoleMentions()
{
Parse.Add("roles");
}
}