Added Mention.User(GlobalUser)
This commit is contained in:
@@ -13,6 +13,9 @@ namespace Discord
|
|||||||
/// <summary> Returns the string used to create a user mention. </summary>
|
/// <summary> Returns the string used to create a user mention. </summary>
|
||||||
public static string User(User user)
|
public static string User(User user)
|
||||||
=> $"<@{user.Id}>";
|
=> $"<@{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>
|
/// <summary> Returns the string used to create a channel mention. </summary>
|
||||||
public static string Channel(Channel channel)
|
public static string Channel(Channel channel)
|
||||||
=> $"<#{channel.Id}>";
|
=> $"<#{channel.Id}>";
|
||||||
|
|||||||
Reference in New Issue
Block a user