Add round end Discord pings, discord webhook API (#19468)

This commit is contained in:
DrSmugleaf
2023-08-24 14:50:07 -07:00
committed by GitHub
parent 7ecdb937ac
commit 913c80db4a
13 changed files with 390 additions and 72 deletions

View File

@@ -341,6 +341,18 @@ namespace Content.Shared.CCVar
public static readonly CVarDef<string> DiscordAHelpAvatar =
CVarDef.Create("discord.ahelp_avatar", string.Empty, CVar.SERVERONLY);
/// <summary>
/// URL of the Discord webhook which will relay round restart messages.
/// </summary>
public static readonly CVarDef<string> DiscordRoundRestartWebhook =
CVarDef.Create("discord.round_restart_webhook", string.Empty, CVar.SERVERONLY);
/// <summary>
/// Role id for the Discord webhook to ping when the round ends.
/// </summary>
public static readonly CVarDef<long> DiscordRoundEndRoleWebhook =
CVarDef.Create("discord.round_end_role", 0L, CVar.SERVERONLY);
/*
* Suspicion
*/