using Robust.Shared.Configuration; namespace Content.Shared.CCVar; public sealed partial class CCVars { /// /// The role that will get mentioned if a new SOS ahelp comes in. /// public static readonly CVarDef DiscordAhelpMention = CVarDef.Create("discord.on_call_ping", string.Empty, CVar.SERVERONLY | CVar.CONFIDENTIAL); /// /// URL of the discord webhook to relay unanswered ahelp messages. /// public static readonly CVarDef DiscordOnCallWebhook = CVarDef.Create("discord.on_call_webhook", string.Empty, CVar.SERVERONLY | CVar.CONFIDENTIAL); /// /// URL of the Discord webhook which will relay all ahelp messages. /// public static readonly CVarDef DiscordAHelpWebhook = CVarDef.Create("discord.ahelp_webhook", string.Empty, CVar.SERVERONLY | CVar.CONFIDENTIAL); /// /// The server icon to use in the Discord ahelp embed footer. /// Valid values are specified at https://discord.com/developers/docs/resources/channel#embed-object-embed-footer-structure. /// public static readonly CVarDef DiscordAHelpFooterIcon = CVarDef.Create("discord.ahelp_footer_icon", string.Empty, CVar.SERVERONLY); /// /// The avatar to use for the webhook. Should be an URL. /// public static readonly CVarDef DiscordAHelpAvatar = CVarDef.Create("discord.ahelp_avatar", string.Empty, CVar.SERVERONLY); /// /// URL of the Discord webhook which will relay all custom votes. If left empty, disables the webhook. /// public static readonly CVarDef DiscordVoteWebhook = CVarDef.Create("discord.vote_webhook", string.Empty, CVar.SERVERONLY); /// /// URL of the Discord webhook which will relay all votekick votes. If left empty, disables the webhook. /// public static readonly CVarDef DiscordVotekickWebhook = CVarDef.Create("discord.votekick_webhook", string.Empty, CVar.SERVERONLY); /// /// URL of the Discord webhook which will relay round restart messages. /// public static readonly CVarDef DiscordRoundUpdateWebhook = CVarDef.Create("discord.round_update_webhook", string.Empty, CVar.SERVERONLY | CVar.CONFIDENTIAL); /// /// Role id for the Discord webhook to ping when the round ends. /// public static readonly CVarDef DiscordRoundEndRoleWebhook = CVarDef.Create("discord.round_end_role", string.Empty, CVar.SERVERONLY); /// /// The token used to authenticate with Discord. For the Bot to function set: discord.token, discord.guild_id, and discord.prefix. /// If this is empty, the bot will not connect. /// public static readonly CVarDef DiscordToken = CVarDef.Create("discord.token", string.Empty, CVar.SERVERONLY | CVar.CONFIDENTIAL); /// /// The Discord guild ID to use for commands as well as for several other features. /// If this is empty, the bot will not connect. /// public static readonly CVarDef DiscordGuildId = CVarDef.Create("discord.guild_id", string.Empty, CVar.SERVERONLY); /// /// Prefix used for commands for the Discord bot. /// If this is empty, the bot will not connect. /// public static readonly CVarDef DiscordPrefix = CVarDef.Create("discord.prefix", "!", CVar.SERVERONLY); /// /// URL of the Discord webhook which will relay watchlist connection notifications. If left empty, disables the webhook. /// public static readonly CVarDef DiscordWatchlistConnectionWebhook = CVarDef.Create("discord.watchlist_connection_webhook", string.Empty, CVar.SERVERONLY | CVar.CONFIDENTIAL); /// /// How long to buffer watchlist connections for, in seconds. /// All connections within this amount of time from the first one will be batched and sent as a single /// Discord notification. If zero, always sends a separate notification for each connection (not recommended). /// public static readonly CVarDef DiscordWatchlistConnectionBufferTime = CVarDef.Create("discord.watchlist_connection_buffer_time", 5f, CVar.SERVERONLY); /// /// URL of the Discord webhook which will receive station news acticles at the round end. /// If left empty, disables the webhook. /// public static readonly CVarDef DiscordNewsWebhook = CVarDef.Create("discord.news_webhook", string.Empty, CVar.SERVERONLY); /// /// HEX color of station news discord webhook's embed. /// public static readonly CVarDef DiscordNewsWebhookEmbedColor = CVarDef.Create("discord.news_webhook_embed_color", Color.LawnGreen.ToHex(), CVar.SERVERONLY); /// /// Whether or not articles should be sent mid-round instead of all at once at the round's end /// public static readonly CVarDef DiscordNewsWebhookSendDuringRound = CVarDef.Create("discord.news_webhook_send_during_round", false, CVar.SERVERONLY); }