7dbd2b5325faf1484fb9a5c297d3c19702badc64
I'm not entirely sure this is the proper way to fix this. However, it seems like SendFileAsync returns the Task<RestUserMessage>, which would exit the using block, disposing of the FileStream potentially before the Task is finished. Changed to await the result of the task before exiting the using block.
Discord.Net v1.0.0-beta
An unofficial .Net API Wrapper for the Discord client (http://discordapp.com).
Check out the documentation or join the Discord API Chat.
Installation
Stable (NuGet)
Our stable builds are available from NuGet:
Unstable (MyGet)
Bleeding edge builds are available using our MyGet feed (https://www.myget.org/F/discord-net/api/v3/index.json). These builds may break at any time - use with caution.
Compiling
In order to compile Discord.Net, you require the following:
Using Visual Studio 2015
Using CLI
Known Issues
WebSockets
The current stable .Net Core websocket package does not support Linux, or pre-Win8.
Linux
Add the latest version of System.Net.WebSockets.Client from the .Net Core MyGet feed (https://dotnet.myget.org/F/dotnet-core/api/v3/index.json) to your project.
Windows 7 and earlier
There is currently no workaround, track the issue here.
Description
Languages
C#
100%
