tgstation-server  4.4.0
The /tg/station 13 server suite
ChatCommand.cs
Go to the documentation of this file.
1 using System;
3 
4 namespace Tgstation.Server.Host.Components.Interop.Topic
5 {
9  sealed class ChatCommand
10  {
14  public string Name { get; }
15 
19  public string Params { get; }
20 
24  public ChatUser User { get; }
25 
32  public ChatCommand(ChatUser user, string command, string parameters)
33  {
34  User = user ?? throw new ArgumentNullException(nameof(user));
35  Name = command ?? throw new ArgumentNullException(nameof(command));
36  Params = parameters ?? throw new ArgumentNullException(nameof(parameters));
37  }
38  }
39 }
Represents a chat command to be handled by DD
Definition: ChatCommand.cs:9
ChatCommand(ChatUser user, string command, string parameters)
Initializes a new instance of the ChatCommand .
Definition: ChatCommand.cs:32
Represents a tgs_chat_user datum
Definition: ChatUser.cs:10