Browse Source

Added Mention.User(GlobalUser)

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

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

@@ -13,6 +13,9 @@ namespace Discord
/// <summary> Returns the string used to create a user mention. </summary>
public static string User(User user)
=> $"<@{user.Id}>";
/// <summary> Returns the string used to create a user mention. </summary>
public static string User(GlobalUser user)
=> $"<@{user.Id}>";
/// <summary> Returns the string used to create a channel mention. </summary>
public static string Channel(Channel channel)
=> $"<#{channel.Id}>";


Loading…
Cancel
Save