baseuniverse
This file contains the BaseUniverse object, which represents a Roblox universe ID. It also contains the UniverseLiveStats object, which represents a universe's live stats.
BaseUniverse
¶
Bases: BaseItem
Represents a Roblox universe ID.
Attributes:
Name | Type | Description |
---|---|---|
id |
int
|
The universe ID. |
Source code in roblox/bases/baseuniverse.py
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 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 |
|
__init__(client, universe_id)
¶
Parameters:
Name | Type | Description | Default |
---|---|---|---|
client |
Client
|
The Client this object belongs to. |
required |
universe_id |
int
|
The universe ID. |
required |
Source code in roblox/bases/baseuniverse.py
52 53 54 55 56 57 58 59 60 |
|
get_badges(page_size=10, sort_order=SortOrder.Ascending, max_items=None)
¶
Gets the universe's badges.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
page_size |
int
|
How many members should be returned for each page. |
10
|
sort_order |
SortOrder
|
Order in which data should be grabbed. |
Ascending
|
max_items |
int
|
The maximum items to return when looping through this object. |
None
|
Returns:
Type | Description |
---|---|
PageIterator
|
A PageIterator containing this universe's badges. |
Source code in roblox/bases/baseuniverse.py
88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 |
|
get_favorite_count()
async
¶
Grabs the universe's favorite count.
Returns:
Type | Description |
---|---|
int
|
The universe's favorite count. |
Source code in roblox/bases/baseuniverse.py
62 63 64 65 66 67 68 69 70 71 72 73 |
|
get_gamepasses(page_size=10, sort_order=SortOrder.Ascending, max_items=None)
¶
Gets the universe's gamepasses.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
page_size |
int
|
How many members should be returned for each page. |
10
|
sort_order |
SortOrder
|
Order in which data should be grabbed. |
Ascending
|
max_items |
int
|
The maximum items to return when looping through this object. |
None
|
Returns:
Type | Description |
---|---|
PageIterator
|
A PageIterator containing the universe's gamepasses. |
Source code in roblox/bases/baseuniverse.py
125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 |
|
get_live_stats()
async
¶
Gets the universe's live stats. This data does not update live. These are just the stats that are shown on the website's live stats display.
Returns:
Type | Description |
---|---|
UniverseLiveStats
|
The universe's live stats. |
Source code in roblox/bases/baseuniverse.py
111 112 113 114 115 116 117 118 119 120 121 122 123 |
|
get_social_links()
async
¶
Gets the universe's social links.
Returns:
Type | Description |
---|---|
List[SocialLink]
|
A list of the universe's social links. |
Source code in roblox/bases/baseuniverse.py
148 149 150 151 152 153 154 155 156 157 158 159 160 |
|
is_favorited()
async
¶
Grabs the authenticated user's favorite status for this game.
Returns:
Type | Description |
---|---|
bool
|
Whether the authenticated user has favorited this game. |
Source code in roblox/bases/baseuniverse.py
75 76 77 78 79 80 81 82 83 84 85 86 |
|
UniverseLiveStats
¶
Represents a universe's live stats.
Attributes:
Name | Type | Description |
---|---|---|
total_player_count |
int
|
The amount of players present in this universe's subplaces. |
game_count |
int
|
The amount of active servers for this universe's subplaces. |
player_counts_by_device_type |
Dict[str, int]
|
A dictionary where the keys are device types and the values are the amount of this universe's subplace's active players which are on that device type. |
Source code in roblox/bases/baseuniverse.py
21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 |
|