You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
this could work well. keyword is search keyword. n is number of search results from server.
the function returns user info by array.
so you can access searched users by indexing like data[0], data[1], ...
This is Typescript version but I cannot tested and I don't know syntaxes all right.
Search User
This methods returns array of users. keyword: The keyword to search n: VRChat API will return top n results. (default: 12) offset: VRChat API will return next top n results. The next top means offset×n index. (default: 1)
Hi.
Thanks for this npm package.
I found this on virtual market 3 and trying some examples works very well.. Great!!
Anyway, for my application, I need to search user by keyword.. (some part of name or etc.)
there was not in this api.
But try this!
I added some code to do that.
On
node_modules/vrchat-client/dist/modules/user.js
this could work well.
keyword
is search keyword.n
is number of search results from server.the function returns user info by array.
so you can access searched users by indexing like data[0], data[1], ...
This is Typescript version but I cannot tested and I don't know syntaxes all right.
Please test this code and update to next version.
Thanks!
The text was updated successfully, but these errors were encountered: