Co-authored-by: DrSmugleaf <DrSmugleaf@users.noreply.github.com> Co-authored-by: DrSmugleaf <drsmugleaf@gmail.com>
19 lines
315 B
C#
19 lines
315 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");
|
|
}
|
|
}
|