Files
tbd-station-14/Content.Shared/Chat/ISharedChatManager.cs
beck-thompson 82ab14da3a Admin alerts now link players with tpto (#40472)
* Admin alerts now link players with tpto

* Add coords

* Slarti tweaks!

* He saw my minor spelling mistake - its over...
2025-10-27 02:40:07 +00:00

31 lines
1.1 KiB
C#

namespace Content.Shared.Chat;
public interface ISharedChatManager
{
void Initialize();
/// <summary>
/// Send an admin alert to the admin chat channel.
/// </summary>
/// <param name="message">The message to send.</param>
void SendAdminAlert(string message);
/// <summary>
/// Send an admin alert to the admin chat channel specifically about the given player.
/// Will include info extra like their antag status and name.
/// </summary>
/// <param name="player">The player that the message is about.</param>
/// <param name="message">The message to send.</param>
void SendAdminAlert(EntityUid player, string message);
/// <summary>
/// This is a dangerous function! Only pass in property escaped text.
/// See: <see cref="SendAdminAlert(string)"/>
/// <br/><br/>
/// Use this for things that need to be unformatted (like tpto links) but ensure that everything else
/// is formated properly. If it's not, players could sneak in ban links or other nasty commands that the admins
/// could clink on.
/// </summary>
void SendAdminAlertNoFormatOrEscape(string message);
}