diff --git a/src/Discord.Net/Message.cs b/src/Discord.Net/Message.cs index fab8f378a..20a1c2741 100644 --- a/src/Discord.Net/Message.cs +++ b/src/Discord.Net/Message.cs @@ -18,28 +18,43 @@ namespace Discord private readonly DiscordClient _client; + /// Returns the unique identifier for this message. public string Id { get; } + /// Returns true if the logged-in user was mentioned. + /// This is not set to true if the user was mentioned with @everyone (see IsMentioningEverone). public bool IsMentioningMe { get; internal set; } + /// Returns true if @everyone was mentioned by someone with permissions to do so. public bool IsMentioningEveryone { get; internal set; } + /// Returns true if the message was sent as text-to-speech by someone with permissions to do so. public bool IsTTS { get; internal set; } + /// Returns the content of this message. public string Text { get; internal set; } + /// Returns the timestamp of this message. public DateTime Timestamp { get; internal set; } + /// Returns the attachments included in this message. public Attachment[] Attachments { get; internal set; } + /// Returns a collection of all user ids mentioned in this message. public string[] MentionIds { get; internal set; } + /// Returns a collection of all users mentioned in this message. [JsonIgnore] public IEnumerable Mentions => MentionIds.Select(x => _client.GetUser(x)).Where(x => x != null); + /// Returns the id of the channel this message was sent in. public string ChannelId { get; } + /// Returns the the channel this message was sent in. [JsonIgnore] public Channel Channel => _client.GetChannel(ChannelId); + /// Returns the id of the author of this message. public string UserId { get; internal set; } + /// Returns the author of this message. [JsonIgnore] public User User => _client.GetUser(UserId); - - //Not Implemented + + //TODO: Not Implemented + /// Not implemented, stored for reference. public object[] Embeds { get; internal set; } internal Message(string id, string channelId, DiscordClient client)