19 lines
318 B
C#
19 lines
318 B
C#
using System.Text.Json.Serialization;
|
|
|
|
namespace Content.Server.Discord;
|
|
|
|
public struct WebhookMentions
|
|
{
|
|
[JsonPropertyName("parse")]
|
|
public HashSet<string> Parse { get; set; } = new();
|
|
|
|
public WebhookMentions()
|
|
{
|
|
}
|
|
|
|
public void AllowRoleMentions()
|
|
{
|
|
Parse.Add("roles");
|
|
}
|
|
}
|