discord-api-docs
discord-api-docs copied to clipboard
Result property of ResultException is not set in C# GameSDK
Description
Result property is not set in constructor of exception, therefore it is always Result.Ok which prevents proper exception handling.
Steps to Reproduce
public partial class ResultException : Exception
{
public readonly Result Result;
public ResultException(Result result) : base(result.ToString())
{
}
}
Expected Behavior
Result property is set accordingly to exception type (result value)
Current Behavior
Result property is always at it's default value - Result.Ok
Screenshots/Videos
No response
Client and System Information
Artix Linux C# .NET Discord Canary GameSDK 3.2.0