2023-12-14 20:03:32 -08:00
|
|
|
using System.Text.Json.Serialization;
|
2023-08-24 14:50:07 -07:00
|
|
|
|
|
|
|
|
namespace Content.Server.Discord;
|
|
|
|
|
|
|
|
|
|
public struct WebhookMentions
|
|
|
|
|
{
|
|
|
|
|
[JsonPropertyName("parse")]
|
|
|
|
|
public HashSet<string> Parse { get; set; } = new();
|
|
|
|
|
|
|
|
|
|
public WebhookMentions()
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void AllowRoleMentions()
|
|
|
|
|
{
|
|
|
|
|
Parse.Add("roles");
|
|
|
|
|
}
|
|
|
|
|
}
|