tgstation-server 6.12.0
The /tg/station 13 server suite
Loading...
Searching...
No Matches
Message.cs
Go to the documentation of this file.
1using System;
2
4{
8 class Message
9 {
13 public string Content { get; }
14
18 public ChatUser User { get; }
19
25 public Message(ChatUser user, string content)
26 {
27 User = user ?? throw new ArgumentNullException(nameof(user));
28 Content = content ?? throw new ArgumentNullException(nameof(content));
29 }
30 }
31}
Represents a tgs_chat_user datum.
Definition ChatUser.cs:12
Represents a message received by a IProvider.
Definition Message.cs:9
ChatUser User
The ChatUser who sent the Message.
Definition Message.cs:18
Message(ChatUser user, string content)
Initializes a new instance of the Message class.
Definition Message.cs:25