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
Fix exception when uploading files (
#2034
)
pull/1967/merge
Quin Lynch
GitHub
3 years ago
parent
64423a0653
commit
7f4feea96d
No known key found for this signature in database
GPG Key ID:
4AEE18F83AFDEB23
1 changed files
with
1 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
src/Discord.Net.Rest/Entities/Channels/ChannelHelper.cs
+ 1
- 1
src/Discord.Net.Rest/Entities/Channels/ChannelHelper.cs
View File
@@ -374,7 +374,7 @@ namespace Discord.Rest
if (channel is ITextChannel guildTextChannel)
{
var contentSize = (ulong)attachments
.Sum(x => x.Stream.Length);
ulong contentSize = (ulong)attachments.Where(x => x.Stream.CanSeek)
.Sum(x => x.Stream.Length);
if (contentSize > guildTextChannel.Guild.MaxUploadLimit)
{
Write
Preview
Loading…
Cancel
Save