This website works better with JavaScript.
Home
Issues
Pull Requests
Milestones
Repositories
Datasets
Forum
实训
竞赛
大数据
应用
Register
Sign In
youys
/
Discord.Net
Not watched
Unwatch
Watch all
Watch but not notify
1
Star
0
Fork
0
Code
Releases
34
Wiki
Activity
Issues
0
Pull Requests
0
Datasets
Model
Cloudbrain
Browse Source
Added a Mention.User(Member) overload
pull/6/head
RogueException
9 years ago
parent
fd1141bc0f
commit
d5de54d0d3
1 changed files
with
3 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+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}>";
Write
Preview
Loading…
Cancel
Save