Skip to content
This repository was archived by the owner on Dec 20, 2021. It is now read-only.

Commit 80aa07d

Browse files
committed
Instance.join()
1 parent 688bc04 commit 80aa07d

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

vrcpy/aobjects.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,9 @@ async def world(self):
201201
resp = await self.client.api.call("/worlds/"+self.worldId)
202202
return World(resp["data"])
203203

204+
async def join(self):
205+
await self.client.api.call("/joins", "PUT", json={"worldId": self.location})
206+
204207
# Misc
205208

206209
class Favorite(o.Favorite):

vrcpy/objects.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -454,6 +454,14 @@ def short_name(self):
454454

455455
return "https://vrchat.com/i/"+self.shortName
456456

457+
def join(self):
458+
'''
459+
"Joins" the instance
460+
Returns void
461+
'''
462+
463+
self.client.api.call("/joins", "PUT", json={"worldId": self.location.location})
464+
457465
def __init__(self, client, obj):
458466
super().__init__(client)
459467
self.unique += [

0 commit comments

Comments
 (0)