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
Set Stream.Position in FileAttachment-ctor to 0 (
#2063
)
Co-authored-by: Christoph Liebender <c.liebender@vision4quality.de>
pull/2064/head
Christoph L
GitHub
3 years ago
parent
5773b8e66d
commit
6dada66992
No known key found for this signature in database
GPG Key ID:
4AEE18F83AFDEB23
1 changed files
with
5 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+5
-0
src/Discord.Net.Core/Entities/Messages/FileAttachment.cs
+ 5
- 0
src/Discord.Net.Core/Entities/Messages/FileAttachment.cs
View File
@@ -32,6 +32,11 @@ namespace Discord
FileName = fileName;
Description = description;
Stream = stream;
try
{
Stream.Position = 0;
}
catch { }
IsSpoiler = isSpoiler;
}
Write
Preview
Loading…
Cancel
Save