diff --git a/src/Discord.Net/Models/Message.cs b/src/Discord.Net/Models/Message.cs index 4734d14db..dfff1ce44 100644 --- a/src/Discord.Net/Models/Message.cs +++ b/src/Discord.Net/Models/Message.cs @@ -91,9 +91,15 @@ namespace Discord [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. + /// Returns the id of the server containing the channel this message was sent to. + public string ServerId => Channel.ServerId; + /// Returns the server containing the channel this message was sent to. + [JsonIgnore] + public Server Server => _client.GetServer(Channel.ServerId); + + /// Returns the id of the channel this message was sent to. public string ChannelId { get; } - /// Returns the the channel this message was sent in. + /// Returns the channel this message was sent to. [JsonIgnore] public Channel Channel => _client.GetChannel(ChannelId); @@ -102,6 +108,8 @@ namespace Discord /// Returns the author of this message. [JsonIgnore] public User User => _client.GetUser(UserId); + [JsonIgnore] + public Membership Member => _client.GetMember(ServerId, UserId); /// Returns true if the current user created this message. public bool IsAuthor => _client.User?.Id == UserId;