You can not select more than 25 topics
Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- using Newtonsoft.Json;
- using System;
-
- namespace Discord
- {
- public sealed class Message
- {
- private readonly DiscordClient _client;
-
- public string Id { get; }
-
- public bool IsMentioningEveryone { get; internal set; }
- public bool IsTTS { get; internal set; }
- public string Text { get; internal set; }
- public DateTime Timestamp { get; internal set; }
-
- public string ChannelId { get; }
- [JsonIgnore]
- public Channel Channel { get { return _client.GetChannel(ChannelId); } }
-
- public string UserId { get; internal set; }
- [JsonIgnore]
- public User User { get { return _client.GetUser(UserId); } }
-
- //Not Implemented
- public object[] Attachments { get; internal set; }
- public object[] Embeds { get; internal set; }
-
- internal Message(string id, string channelId, DiscordClient client)
- {
- Id = id;
- ChannelId = channelId;
- _client = client;
- }
-
- public override string ToString()
- {
- return User.ToString() + ": " + Text;
- }
- }
- }
|