Skip to content

Introduce initial friends module - #186

Open
dustinlacewell wants to merge 2 commits into
ceifa:mainfrom
dustinlacewell:friends-module
Open

Introduce initial friends module#186
dustinlacewell wants to merge 2 commits into
ceifa:mainfrom
dustinlacewell:friends-module

Conversation

@dustinlacewell

Copy link
Copy Markdown

This introduces the friends module with a single function get_persona_name.

@linorabolini

Copy link
Copy Markdown

Hey I was looking for exactly this !

@GRhin

GRhin commented Dec 1, 2025

Copy link
Copy Markdown

is there a build that includes this? even a testing build?

sefacndmr01 added a commit to sefacndmr01/steamworks.js that referenced this pull request Aug 30, 2026
Based on the friends module from PR ceifa#186 by dustinlacewell, with two
changes needed for leaderboard rows:

- request_user_information takes name_only as a parameter instead of
  hardcoding true. Steam does not fetch a user's avatar when name_only
  is set, so the hardcoded version cannot support avatars at all. It
  also returns the underlying bool, which is false when the information
  is already cached locally and can be read immediately.
- Adds get_small_avatar and get_medium_avatar (32x32 and 64x64 RGBA),
  returned as Buffer following the same Vec<u8>.into() idiom auth.rs
  already uses for ticket bytes.

client.d.ts is not touched here because the napi build regenerates it.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants