diff --git a/Facepunch.Steamworks/Client/Friends.cs b/Facepunch.Steamworks/Client/Friends.cs index 7893415..366473b 100644 --- a/Facepunch.Steamworks/Client/Friends.cs +++ b/Facepunch.Steamworks/Client/Friends.cs @@ -115,11 +115,22 @@ namespace Facepunch.Steamworks { client = c; } + + /// + /// Try to get information about this user - which as name and avatar. + /// If returns true, we already have this user's information. + /// + public bool UpdateInformation( ulong steamid ) + { + return !client.native.friends.RequestUserInformation( steamid, false ); + } + /// + /// Get this user's name + /// public string GetName( ulong steamid ) { client.native.friends.RequestUserInformation( steamid, true ); - return client.native.friends.GetFriendPersonaName( steamid ); }