specification
specification copied to clipboard
[Bug] Can't run getGroupMember against a group if the member is not part of the group vrchat@next
Info
Node: v23.11.0 NPM: 11.4.2 [email protected]
What happened
I ran getGroupMember against a group. The user was not part of the group, which made it crash.
What should have happened
It should have responded with an error, saying that the member is not part of the group
Code
const test = await vrchat.getGroupMember({
path: {
groupId: "grp_1477146f-c34b-4f28-940b-12881c1a8f9d",
userId: "usr_0e256767-1f18-48c4-aa07-71ff8f3b1ad5"
}
})
Error
[12:20:11][ERROR]: [Main Handler]: ❌ Error loading scripts from C:\Users\Blackwolf\Nextcloud\Cloud\Editor\VRChat\VRChat-test\src - Cannot read properties of null (reading 'joinedAt')
[12:20:11][ERROR]: [Main Handler]: Error TypeError: Cannot read properties of null (reading 'joinedAt')
TypeError: Cannot read properties of null (reading 'joinedAt')
at ir (file:///C:/Users/Blackwolf/Nextcloud/Cloud/Editor/VRChat/VRChat-test/node_modules/vrchat/dist/index.mjs:1:7627)
at Object.pr [as responseTransformer] (file:///C:/Users/Blackwolf/Nextcloud/Cloud/Editor/VRChat/VRChat-test/node_modules/vrchat/dist/index.mjs:1:7848)
at o (file:///C:/Users/Blackwolf/Nextcloud/Cloud/Editor/VRChat/VRChat-test/node_modules/@hey-api/client-fetch/dist/index.js:1:7201)
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
at async file:///C:/Users/Blackwolf/Nextcloud/Cloud/Editor/VRChat/VRChat-test/src/vrchat/authentication.ts:106:14