Always show ahelp relay message when the relay is enabled (#14931)

This commit is contained in:
DrSmugleaf
2023-03-28 14:27:21 -07:00
committed by GitHub
parent f9a347be21
commit ed45440256
6 changed files with 76 additions and 20 deletions

View File

@@ -29,7 +29,9 @@ namespace Content.Shared.Administration
public sealed class BwoinkTextMessage : EntityEventArgs
{
public DateTime SentAt { get; }
public NetUserId UserId { get; }
// This is ignored from the client.
// It's checked by the client when receiving a message from the server for bwoink noises.
// This could be a boolean "Incoming", but that would require making a second instance.
@@ -44,5 +46,20 @@ namespace Content.Shared.Administration
Text = text;
}
}
/// <summary>
/// Sent by the server to notify all clients when the webhook url is sent.
/// The webhook url itself is not and should not be sent.
/// </summary>
[Serializable, NetSerializable]
public sealed class BwoinkDiscordRelayUpdated : EntityEventArgs
{
public bool DiscordRelayEnabled { get; }
public BwoinkDiscordRelayUpdated(bool enabled)
{
DiscordRelayEnabled = enabled;
}
}
}
}