mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-08-26 22:48:20 +01:00
26 lines
802 B
C#
26 lines
802 B
C#
namespace TGS.Server.ChatCommands
|
|
{
|
|
/// <summary>
|
|
/// Metadata about the currently running <see cref="ChatCommand"/>
|
|
/// </summary>
|
|
sealed class CommandInfo
|
|
{
|
|
/// <summary>
|
|
/// If the <see cref="ChatCommand"/> was invoked by an admin
|
|
/// </summary>
|
|
public bool IsAdmin { get; set; }
|
|
/// <summary>
|
|
/// If the <see cref="ChatCommand"/> was invoked from an admin chat channel
|
|
/// </summary>
|
|
public bool IsAdminChannel { get; set; }
|
|
/// <summary>
|
|
/// The name of the <see cref="ChatCommand"/> invoker
|
|
/// </summary>
|
|
public string Speaker { get; set; }
|
|
/// <summary>
|
|
/// A reference to the <see cref="Instance"/> that runs the <see cref="ChatProviders.IChatProvider"/> that heard the <see cref="ChatCommand"/>
|
|
/// </summary>
|
|
public Instance Server { get; set; }
|
|
}
|
|
}
|