tgstation-server 6.12.0
The /tg/station 13 server suite
Loading...
Searching...
No Matches
ChatCommand.cs
Go to the documentation of this file.
1using System;
2
4
6{
10 sealed class ChatCommand
11 {
15 public string Name { get; }
16
20 public string Params { get; }
21
25 public ChatUser User { get; }
26
33 public ChatCommand(ChatUser user, string command, string parameters)
34 {
35 User = user ?? throw new ArgumentNullException(nameof(user));
36 Name = command ?? throw new ArgumentNullException(nameof(command));
37 Params = parameters ?? throw new ArgumentNullException(nameof(parameters));
38 }
39 }
40}
Represents a tgs_chat_user datum.
Definition ChatUser.cs:12
Represents a chat command to be handled by DD.
ChatCommand(ChatUser user, string command, string parameters)
Initializes a new instance of the ChatCommand class.
ChatUser User
The ChatUser that sent the command.