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
convert collections into immutable arrays
pull/2469/head
Misha133
3 years ago
parent
c7a946c6eb
commit
028a70a8c6
2 changed files
with
2 additions
and
2 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
src/Discord.Net.Rest/Entities/Channels/RestThreadChannel.cs
+1
-1
src/Discord.Net.WebSocket/Entities/Channels/SocketThreadChannel.cs
+ 1
- 1
src/Discord.Net.Rest/Entities/Channels/RestThreadChannel.cs
View File
@@ -81,7 +81,7 @@ namespace Discord.Rest
Type = (ThreadType)model.Type;
ParentChannelId = model.CategoryId.Value;
AppliedTags = model.AppliedTags.GetValueOrDefault(Array.Empty<ulong>());
AppliedTags = model.AppliedTags.GetValueOrDefault(Array.Empty<ulong>())
.ToImmutableArray()
;
}
/// <summary>
+ 1
- 1
src/Discord.Net.WebSocket/Entities/Channels/SocketThreadChannel.cs
View File
@@ -153,7 +153,7 @@ namespace Discord.WebSocket
HasJoined = model.ThreadMember.IsSpecified;
AppliedTags = model.AppliedTags.GetValueOrDefault(Array.Empty<ulong>());
AppliedTags = model.AppliedTags.GetValueOrDefault(Array.Empty<ulong>())
.ToImmutableArray()
;
}
internal IReadOnlyCollection<SocketThreadUser> RemoveUsers(ulong[] users)
Write
Preview
Loading…
Cancel
Save