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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
5 additions and
0 deletions
-
src/Discord.Net.Core/Entities/Messages/FileAttachment.cs
|
@@ -32,6 +32,11 @@ namespace Discord |
|
|
FileName = fileName; |
|
|
FileName = fileName; |
|
|
Description = description; |
|
|
Description = description; |
|
|
Stream = stream; |
|
|
Stream = stream; |
|
|
|
|
|
try |
|
|
|
|
|
{ |
|
|
|
|
|
Stream.Position = 0; |
|
|
|
|
|
} |
|
|
|
|
|
catch { } |
|
|
IsSpoiler = isSpoiler; |
|
|
IsSpoiler = isSpoiler; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|