Browse Source

Added a Mention.User(Member) overload

tags/docs-0.9
RogueException 9 years ago
parent
commit
d5de54d0d3
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      src/Discord.Net/Mention.cs

+ 3
- 0
src/Discord.Net/Mention.cs View File

@@ -6,6 +6,9 @@
public static string User(User user)
=> $"<@{user.Id}>";
/// <summary> Returns the string used to create a user mention. </summary>
public static string User(Member member)
=> $"<@{member.UserId}>";
/// <summary> Returns the string used to create a user mention. </summary>
public static string User(string userId)
=> $"<@{userId}>";



Loading…
Cancel
Save