baseplace
This file contains the BasePlace object, which represents a Roblox place ID.
BasePlace
¶
Bases: BaseAsset
Represents a Roblox place ID. Places are a form of Asset and as such this object derives from BaseAsset.
Attributes:
Name | Type | Description |
---|---|---|
id |
int
|
The place ID. |
Source code in roblox/bases/baseplace.py
18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 |
|
__init__(client, place_id)
¶
Parameters:
Name | Type | Description | Default |
---|---|---|---|
client |
Client
|
The Client this object belongs to. |
required |
place_id |
int
|
The place ID. |
required |
Source code in roblox/bases/baseplace.py
27 28 29 30 31 32 33 34 35 36 37 |
|
get_instances(start_index=0)
async
¶
Returns a list of this place's current active servers, known in the API as "game instances". This list always contains 10 items or fewer. For more items, add 10 to the start index and repeat until no more items are available.
Warning
This function has been deprecated. The Roblox endpoint used by this function has been removed. Please update any code using this method to use
Parameters:
Name | Type | Description | Default |
---|---|---|---|
start_index |
int
|
Where to start in the server index. |
0
|
Source code in roblox/bases/baseplace.py
39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 |
|
get_private_servers(page_size=10, sort_order=SortOrder.Descending, max_items=None)
¶
Grabs the private servers of a place the authenticated user can access.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
page_size |
int
|
How many private servers should be returned for each page. |
10
|
sort_order |
SortOrder
|
Order in which data should be grabbed. |
Descending
|
max_items |
int
|
The maximum items to return when looping through this object. |
None
|
Returns:
Type | Description |
---|---|
PageIterator
|
A PageIterator containing private servers. |
Source code in roblox/bases/baseplace.py
99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 |
|
get_servers(server_type, page_size=10, sort_order=SortOrder.Descending, exclude_full_games=False, max_items=None)
¶
Grabs the place's servers.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
server_type |
ServerType
|
The type of servers to return. |
required |
page_size |
int
|
How many servers should be returned for each page. |
10
|
sort_order |
SortOrder
|
Order in which data should be grabbed. |
Descending
|
exclude_full_games |
bool
|
Whether to exclude full servers. |
False
|
max_items |
int
|
The maximum items to return when looping through this object. |
None
|
Returns:
Type | Description |
---|---|
PageIterator
|
A PageIterator containing servers. |
Source code in roblox/bases/baseplace.py
66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 |
|