async def get_trades(self, trade_status_type: TradeStatusType.Inbound, sort_order=SortOrder.Ascending, limit=10) -> Pages: trades = Pages(cso=self.cso, url=endpoint + f"/v1/trades/{trade_status_type}", sort_order=sort_order, limit=limit, handler=trade_page_handler) return trades
async def get_members(self, sort_order=SortOrder.Ascending, limit=100): pages = Pages(cso=self.cso, url=endpoint + f"/v1/groups/{self.id}/users?limit=100&sortOrder=Desc", sort_order=sort_order, limit=limit, handler=member_handler, handler_args=self) await pages.get_page() return pages
async def get_join_requests(self, sort_order=SortOrder.Ascending, limit=100): pages = Pages(cso=self.cso, url=endpoint + f"/v1/groups/{self.id}/join-requests", sort_order=sort_order, limit=limit, handler=join_request_handler, handler_args=self) await pages.get_page() return pages
async def get_posts(self, sort_order=SortOrder.Ascending, limit=100): wall_req = Pages( cso=self.cso, url=endpoint + f"/v2/groups/{self.group.id}/wall/posts", sort_order=sort_order, limit=limit, handler=wall_post_handler, handler_args=self.group ) await wall_req.get_page() return wall_req
async def get_limiteds(self): """ Gets all limiteds the user owns. Returns ------- list """ return Pages( cso=self.cso, url=f"https://inventory.roblox.com/v1/users/{self.id}/assets/collectibles?cursor=&limit=100&sortOrder=Desc", handler=limited_handler )
async def get_friend_requests(self, sort_order=SortOrder.Ascending, limit=100): """ Gets friend requests the client has. """ friends = Pages( cso=self.cso, url="https://friends.roblox.com/v1/my/friends/requests", handler=friend_handler, sort_order=sort_order, limit=limit ) await friends.get_page() return friends
async def get_audit_logs(self, action_filter: Actions = None, sort_order=SortOrder.Ascending, limit=100): parameters = {} if action_filter: parameters['actionType'] = action_filter pages = Pages(cso=self.cso, url=endpoint + f"/v1/groups/{self.id}/audit-log", handler=action_handler, extra_parameters=parameters, handler_args=self, limit=limit, sort_order=sort_order) await pages.get_page() return pages