1
0

WebhookMentions.cs 315 B

123456789101112131415161718
  1. using System.Text.Json.Serialization;
  2. namespace Content.Server.Discord;
  3. public struct WebhookMentions
  4. {
  5. [JsonPropertyName("parse")]
  6. public HashSet<string> Parse { get; set; } = new();
  7. public WebhookMentions()
  8. {
  9. }
  10. public void AllowRoleMentions()
  11. {
  12. Parse.Add("roles");
  13. }
  14. }