Set Stream.Position in FileAttachment-ctor to 0 (#2063)
Co-authored-by: Christoph Liebender <c.liebender@vision4quality.de>
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user