Set Stream.Position in FileAttachment-ctor to 0 (#2063)

Co-authored-by: Christoph Liebender <c.liebender@vision4quality.de>
This commit is contained in:
Christoph L
2022-01-27 14:55:40 +01:00
committed by GitHub
parent 5773b8e66d
commit 6dada66992

View File

@@ -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;
} }