mirror of
https://github.com/Facepunch/Facepunch.Steamworks.git
synced 2024-12-27 07:05:50 +03:00
Exposed the full result of the Vote method
This commit is contained in:
parent
8b231bf4d6
commit
2f63117c32
@ -284,10 +284,10 @@ public async Task<bool> RemoveFavorite()
|
||||
/// <summary>
|
||||
/// Allows the user to rate a workshop item up or down.
|
||||
/// </summary>
|
||||
public async Task<bool> Vote( bool up )
|
||||
public async Task<Result?> Vote( bool up )
|
||||
{
|
||||
var r = await SteamUGC.Internal.SetUserItemVote( Id, up );
|
||||
return r?.Result == Result.OK;
|
||||
return r?.Result;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
Loading…
Reference in New Issue
Block a user