Added Channel reference to message

This commit is contained in:
Brandon Smith
2015-08-08 11:29:40 -03:00
parent d9d4d6d621
commit 070121c9dc

View File

@@ -8,13 +8,16 @@ namespace Discord.Models
private readonly DiscordClient _client;
public string Id { get; }
public string ChannelId { 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); } }