-
Notifications
You must be signed in to change notification settings - Fork 55
Typing fixes + docs improvements #121
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
7adca42
ee834a0
7b9ebfe
bc4f8ec
fe3c1ff
7255326
1e26e73
b615bc2
1548f96
70b6b87
4e81a76
473a675
f2e9a50
106a2c8
72a53a7
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -95,8 +95,8 @@ class AssetType: | |
| Represents a Roblox asset type. | ||
|
|
||
| Attributes: | ||
| id: Id of the Asset | ||
| name: Name of the Asset | ||
| id: Id of the Asset. | ||
| name: Name of the Asset. | ||
| """ | ||
|
|
||
| def __init__(self, type_id: int): | ||
|
|
@@ -119,27 +119,27 @@ class EconomyAsset(BaseAsset): | |
| It is intended to parse data from https://economy.roblox.com/v2/assets/ASSETID/details. | ||
|
|
||
| Attributes: | ||
| id: Id of the Asset | ||
| product_id: Product id of the asset | ||
| name: Name of the Asset | ||
| description: Description of the Asset | ||
| type: Type of the Asset | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Maybe we shouldn't need to write "... of the Asset." over and over, although I don't know what exactly to put there instead
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Could make it "The asset's ..." but I'm not really sure if that's better.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I have updated the attribute descriptions to have less repetition is it better now? |
||
| creator_type: Type of creator can be user or group see enum | ||
Jodenee marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| creator: creator can be a user or group object | ||
| icon_image: BaseAsset | ||
| created: When the asset was created | ||
| updated: When the asset was updated for the las time | ||
Jodenee marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| price: price of the asset | ||
| sales: amount of sales of the asset | ||
| is_new: if the asset it new | ||
| is_for_sale: if the asset is for sale | ||
| is_public_domain: if the asset is public domain | ||
| is_limited: if the asset is a limited item | ||
| is_limited_unique: if the asset is a unique limited item | ||
| remaining: How many items there are remaining if it is limited | ||
| minimum_membership_level: Minimum membership level required to buy item | ||
| content_rating_type_id: Unknown | ||
| sale_availability_locations: Unknown | ||
| id: The asset's ID. | ||
| product_id: The asset's product ID. | ||
| name: The asset's name. | ||
| description: A description of the asset. | ||
| type: Specifies the type of the asset. | ||
| creator_type: Specifies whether the creator is a user or a group. | ||
| creator: The user or group that created the asset. | ||
| icon_image: A [BaseAsset][roblox.bases.baseasset.BaseAsset] representing the asset's icon. | ||
| created: When the asset was created. | ||
| updated: When the asset was last updated. | ||
| price: How much the asset costs. | ||
| sales: The amount of times this asset has been sold. | ||
| is_new: If the asset is new. | ||
| is_for_sale: If the asset is for sale. | ||
| is_public_domain: If the asset is public domain. | ||
| is_limited: If the asset is a limited item. | ||
| is_limited_unique: If the asset is a unique limited item. | ||
| remaining: How many items there are remaining if it is limited. | ||
| minimum_membership_level: Minimum membership level required to buy the asset. | ||
| content_rating_type_id: Unknown. | ||
| sale_availability_locations: Unknown. | ||
| """ | ||
|
|
||
| def __init__(self, client: Client, data: dict): | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -44,16 +44,16 @@ class Badge(BaseBadge): | |
| Represents a badge from the API. | ||
|
|
||
| Attributes: | ||
| id: The badge Id. | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. is it "a badge ID" or "a badge's ID"? i honestly don't know what's best, but considering we talk about "user IDs" a lot I'm leaning towards "The badge ID."
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Something about "The badge ID" doesn't really sit well with me. "The badge's ID" just sounds more clear and it's more consistent with other pages too. What do you think? |
||
| id: The badge's ID. | ||
| name: The name of the badge. | ||
| description: The badge description. | ||
| display_name: The localized name of the badge. | ||
| display_description: The localized badge description. | ||
| enabled: Whether or not the badge is enabled. | ||
| icon: The badge icon. | ||
| icon: The badge's icon. | ||
| display_icon: The localized badge icon. | ||
| created: When the badge was created. | ||
| updated: When the badge was updated. | ||
| updated: When the badge was last updated. | ||
| statistics: Badge award statistics. | ||
| awarding_universe: The universe the badge is being awarded from. | ||
| """ | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.