Browse Source

Added User.PrivateChannel

tags/docs-0.9
RogueException 9 years ago
parent
commit
84bf9e7514
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      src/Discord.Net/Models/User.cs

+ 2
- 0
src/Discord.Net/Models/User.cs View File

@@ -71,6 +71,8 @@ namespace Discord
// /// <summary> Gets this user's voice token. </summary>
// public string Token { get; private set; }

/// <summary> Gets the current private channel for this user if one exists. </summary>
public Channel PrivateChannel => Client.GetPrivateChannel(Id);
/// <summary> Returns the string used to mention this user. </summary>
public string Mention => $"<@{Id}>";
/// <summary> Returns true if this user has marked themselves as muted. </summary>


Loading…
Cancel
Save