Browse Source

set stream.position in FileAttachment ctor to 0

pull/2063/head
Christoph Liebender 3 years ago
parent
commit
e987bb0a17
1 changed files with 5 additions and 0 deletions
  1. +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;
}



Loading…
Cancel
Save