Add round end Discord pings, discord webhook API (#19468)
This commit is contained in:
18
Content.Server/Discord/WebhookMentions.cs
Normal file
18
Content.Server/Discord/WebhookMentions.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
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");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user