@@ -61,7 +61,7 @@ async def friend(self):
6161 async def favorite (self ):
6262 resp = await self .client .api .call ("/favorites" , "POST" , params = {"type" : types .FavoriteType .Friend ,
6363 "favoriteId" : self .id })
64- return Favorite (resp ["data" ])
64+ return Favorite (self . client , resp ["data" ])
6565
6666
6767class User (o .User , LimitedUser ):
@@ -149,7 +149,7 @@ async def remove_favorite(self, id):
149149
150150 async def fetch_favorite (self , id ):
151151 resp = await self .client .api .call ("/favorites/" + id )
152- return Favorite (resp )
152+ return Favorite (self . client , resp )
153153
154154 async def __cinit__ (self ):
155155 if hasattr (self , "currentAvatar" ):
@@ -200,7 +200,7 @@ async def author(self):
200200 async def favorite (self ):
201201 resp = await self .client .api .call ("/favorites" , "POST" , params = {"type" : types .FavoriteType .World ,
202202 "favoriteId" : self .id })
203- return Favorite (resp ["data" ])
203+ return Favorite (self . client , resp ["data" ])
204204
205205
206206class World (o .World , LimitedWorld ):
@@ -231,10 +231,10 @@ class Location(o.Location):
231231class Instance (o .Instance ):
232232 async def world (self ):
233233 resp = await self .client .api .call ("/worlds/" + self .worldId )
234- return World (resp ["data" ])
234+ return World (self . client , resp ["data" ])
235235
236236 async def join (self ):
237- await self .client .api .call ("/joins" , "PUT" , json = {"worldId" : self .location })
237+ await self .client .api .call ("/joins" , "PUT" , json = {"worldId" : self .location . location })
238238
239239# unityPackage objects
240240
0 commit comments