Added Channel reference to message
This commit is contained in:
@@ -8,13 +8,16 @@ namespace Discord.Models
|
|||||||
private readonly DiscordClient _client;
|
private readonly DiscordClient _client;
|
||||||
|
|
||||||
public string Id { get; }
|
public string Id { get; }
|
||||||
public string ChannelId { get; }
|
|
||||||
|
|
||||||
public bool IsMentioningEveryone { get; internal set; }
|
public bool IsMentioningEveryone { get; internal set; }
|
||||||
public bool IsTTS { get; internal set; }
|
public bool IsTTS { get; internal set; }
|
||||||
public string Text { get; internal set; }
|
public string Text { get; internal set; }
|
||||||
public DateTime Timestamp { 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; }
|
public string UserId { get; internal set; }
|
||||||
[JsonIgnore]
|
[JsonIgnore]
|
||||||
public User User { get { return _client.GetUser(UserId); } }
|
public User User { get { return _client.GetUser(UserId); } }
|
||||||
|
|||||||
Reference in New Issue
Block a user