This website works better with JavaScript.
Home
Issues
Pull Requests
Milestones
AI流水线
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
Add Remark to MutualGuilds
pull/1545/head
Paulo
5 years ago
parent
1332da76e8
commit
439e182946
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.WebSocket/Entities/Users/SocketUser.cs
+ 3
- 0
src/Discord.Net.WebSocket/Entities/Users/SocketUser.cs
View File
@@ -44,6 +44,9 @@ namespace Discord.WebSocket
/// <summary>
/// Gets mutual guilds shared with this user.
/// </summary>
/// <remarks>
/// This property will only include guilds in the same <see cref="DiscordSocketClient"/>.
/// </remarks>
public IReadOnlyCollection<SocketGuild> MutualGuilds
=> Discord.Guilds.Where(g => g.GetUser(Id) != null).ToImmutableArray();
Write
Preview
Loading…
Cancel
Save