@rbxts/types 1.0.826 → 1.0.828

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3325,7 +3325,7 @@ interface AssetService extends Instance {
3325
3325
  * @param templatePlaceID
3326
3326
  * @param description
3327
3327
  */
3328
- CreatePlaceInPlayerInventoryAsync(this: AssetService, player: Instance, placeName: string, templatePlaceID: number, description: string): number;
3328
+ CreatePlaceInPlayerInventoryAsync(this: AssetService, player: Player, placeName: string, templatePlaceID: number, description: string): number;
3329
3329
  /**
3330
3330
  * Returns an array of asset IDs that are contained in a specified package.
3331
3331
  *
@@ -22336,7 +22336,7 @@ interface LocalizationService extends Instance {
22336
22336
  * @param player The player that you are getting country/region information for.
22337
22337
  * @returns A string indicating the country/region code of a player.
22338
22338
  */
22339
- GetCountryRegionForPlayerAsync(this: LocalizationService, player: Instance): string;
22339
+ GetCountryRegionForPlayerAsync(this: LocalizationService, player: Player): string;
22340
22340
  /**
22341
22341
  * Yields until the cloud `LocalizationTable` for the argument locale has been loaded - if available. Returns a `Translator` instance to be used for translations for the provided locale.
22342
22342
  *
@@ -23015,7 +23015,7 @@ interface MarketplaceService extends Instance {
23015
23015
  * @param player
23016
23016
  * @param bundleId
23017
23017
  */
23018
- PromptBundlePurchase(this: MarketplaceService, player: Instance, bundleId: number): void;
23018
+ PromptBundlePurchase(this: MarketplaceService, player: Player, bundleId: number): void;
23019
23019
  /**
23020
23020
  * Prompts a user to cancel a subscription for the given `subscriptionId`.
23021
23021
  *
@@ -23037,7 +23037,7 @@ interface MarketplaceService extends Instance {
23037
23037
  * @param player
23038
23038
  * @param gamePassId
23039
23039
  */
23040
- PromptGamePassPurchase(this: MarketplaceService, player: Instance, gamePassId: number): void;
23040
+ PromptGamePassPurchase(this: MarketplaceService, player: Player, gamePassId: number): void;
23041
23041
  /**
23042
23042
  * Prompts a user to purchase Roblox Premium.
23043
23043
  *
@@ -23047,7 +23047,7 @@ interface MarketplaceService extends Instance {
23047
23047
  * @param this The service responsible for in-experience transactions.
23048
23048
  * @param player The user being prompted to purchase Premium.
23049
23049
  */
23050
- PromptPremiumPurchase(this: MarketplaceService, player: Instance): void;
23050
+ PromptPremiumPurchase(this: MarketplaceService, player: Player): void;
23051
23051
  /**
23052
23052
  * Prompts a user to purchase a developer product with the given `productId`.
23053
23053
  *
@@ -23179,7 +23179,7 @@ interface MarketplaceService extends Instance {
23179
23179
  * @param assetId The asset ID for which the given player's inventory is tested.
23180
23180
  * @returns Indicates whether the given player's inventory contains the given asset.
23181
23181
  */
23182
- PlayerOwnsAsset(this: MarketplaceService, player: Instance, assetId: number): boolean;
23182
+ PlayerOwnsAsset(this: MarketplaceService, player: Player, assetId: number): boolean;
23183
23183
  /**
23184
23184
  * Returns whether the given player owns the given bundle.
23185
23185
  *
@@ -23212,13 +23212,13 @@ interface MarketplaceService extends Instance {
23212
23212
  *
23213
23213
  * [Creator Hub](https://create.roblox.com/docs/reference/engine/classes/MarketplaceService#PromptBulkPurchaseFinished)
23214
23214
  */
23215
- readonly PromptBulkPurchaseFinished: RBXScriptSignal<(player: Instance, status: Enum.MarketplaceBulkPurchasePromptStatus, results: object) => void>;
23215
+ readonly PromptBulkPurchaseFinished: RBXScriptSignal<(player: Player, status: Enum.MarketplaceBulkPurchasePromptStatus, results: PromptBulkPurchaseFinishedResults) => void>;
23216
23216
  /**
23217
23217
  * - **ThreadSafety**: Unsafe
23218
23218
  *
23219
23219
  * [Creator Hub](https://create.roblox.com/docs/reference/engine/classes/MarketplaceService#PromptBundlePurchaseFinished)
23220
23220
  */
23221
- readonly PromptBundlePurchaseFinished: RBXScriptSignal<(player: Instance, bundleId: number, wasPurchased: boolean) => void>;
23221
+ readonly PromptBundlePurchaseFinished: RBXScriptSignal<(player: Player, bundleId: number, wasPurchased: boolean) => void>;
23222
23222
  /**
23223
23223
  * Fires when a purchase prompt for a pass is closed.
23224
23224
  *
@@ -23226,7 +23226,7 @@ interface MarketplaceService extends Instance {
23226
23226
  *
23227
23227
  * [Creator Hub](https://create.roblox.com/docs/reference/engine/classes/MarketplaceService#PromptGamePassPurchaseFinished)
23228
23228
  */
23229
- readonly PromptGamePassPurchaseFinished: RBXScriptSignal<(player: Instance, gamePassId: number, wasPurchased: boolean) => void>;
23229
+ readonly PromptGamePassPurchaseFinished: RBXScriptSignal<(player: Player, gamePassId: number, wasPurchased: boolean) => void>;
23230
23230
  /**
23231
23231
  * Fires when a purchase prompt for Roblox Premium is closed.
23232
23232
  *
@@ -23250,7 +23250,7 @@ interface MarketplaceService extends Instance {
23250
23250
  *
23251
23251
  * [Creator Hub](https://create.roblox.com/docs/reference/engine/classes/MarketplaceService#PromptPurchaseFinished)
23252
23252
  */
23253
- readonly PromptPurchaseFinished: RBXScriptSignal<(player: Instance, assetId: number, isPurchased: boolean) => void>;
23253
+ readonly PromptPurchaseFinished: RBXScriptSignal<(player: Player, assetId: number, isPurchased: boolean) => void>;
23254
23254
  /**
23255
23255
  * Fires when a purchase prompt for a subscription is closed.
23256
23256
  *
@@ -32576,7 +32576,7 @@ interface SocialService extends Instance {
32576
32576
  * @param player The `Player` to prompt with the invite popup.
32577
32577
  * @param experienceInviteOptions Optional `ExperienceInviteOptions` object for customizing the prompt.
32578
32578
  */
32579
- PromptGameInvite(this: SocialService, player: Instance, experienceInviteOptions?: Instance): void;
32579
+ PromptGameInvite(this: SocialService, player: Player, experienceInviteOptions?: Instance): void;
32580
32580
  /**
32581
32581
  * Prompts the given `Player` with the phone book.
32582
32582
  *
@@ -32587,7 +32587,7 @@ interface SocialService extends Instance {
32587
32587
  * @param player The player to prompt with the phone book.
32588
32588
  * @param tag String to help differentiate between various phone book "entry points" or similar. For example, you can pass a string defining what region of an experience the calling player's character is currently in.
32589
32589
  */
32590
- PromptPhoneBook(this: SocialService, player: Instance, tag: string): void;
32590
+ PromptPhoneBook(this: SocialService, player: Player, tag: string): void;
32591
32591
  /**
32592
32592
  * Shows the calling player's self view.
32593
32593
  *
@@ -32609,7 +32609,7 @@ interface SocialService extends Instance {
32609
32609
  * @param player The `Player` instance of the player potentially sending a call invite.
32610
32610
  * @returns Whether the specified player can send a call invite.
32611
32611
  */
32612
- CanSendCallInviteAsync(this: SocialService, player: Instance): boolean;
32612
+ CanSendCallInviteAsync(this: SocialService, player: Player): boolean;
32613
32613
  /**
32614
32614
  * Indicates whether the given `Player` can invite other players.
32615
32615
  *
@@ -32622,7 +32622,7 @@ interface SocialService extends Instance {
32622
32622
  * @param recipientId Optional `Player.UserId` of the potential **recipient**, used to check whether the sender can invite that specific recipient.
32623
32623
  * @returns Whether the specified player can send an invite.
32624
32624
  */
32625
- CanSendGameInviteAsync(this: SocialService, player: Instance, recipientId?: number): boolean;
32625
+ CanSendGameInviteAsync(this: SocialService, player: Player, recipientId?: number): boolean;
32626
32626
  /**
32627
32627
  * Fires when a player's call invite state changes.
32628
32628
  *
@@ -32630,7 +32630,7 @@ interface SocialService extends Instance {
32630
32630
  *
32631
32631
  * [Creator Hub](https://create.roblox.com/docs/reference/engine/classes/SocialService#CallInviteStateChanged)
32632
32632
  */
32633
- readonly CallInviteStateChanged: RBXScriptSignal<(player: Instance, inviteState: Enum.InviteState) => void>;
32633
+ readonly CallInviteStateChanged: RBXScriptSignal<(player: Player, inviteState: Enum.InviteState) => void>;
32634
32634
  /**
32635
32635
  * Fires when a player closes an invite prompt.
32636
32636
  *
@@ -32646,7 +32646,7 @@ interface SocialService extends Instance {
32646
32646
  *
32647
32647
  * [Creator Hub](https://create.roblox.com/docs/reference/engine/classes/SocialService#PhoneBookPromptClosed)
32648
32648
  */
32649
- readonly PhoneBookPromptClosed: RBXScriptSignal<(player: Instance) => void>;
32649
+ readonly PhoneBookPromptClosed: RBXScriptSignal<(player: Player) => void>;
32650
32650
  /**
32651
32651
  * Callback for when a call is placed from the phone book.
32652
32652
  *
@@ -36566,7 +36566,7 @@ interface TextChatService extends Instance {
36566
36566
  * @param message The incoming `TextChatMessage`.
36567
36567
  * @returns If a `ChatWindowMessageProperties` is returned, its properties override the `ChatWindowConfiguration` properties.
36568
36568
  */
36569
- OnChatWindowAdded: ((message: TextChatMessage) => unknown) | undefined;
36569
+ OnChatWindowAdded: (message: TextChatMessage) => ChatWindowMessageProperties | undefined;
36570
36570
  /**
36571
36571
  * Called when `TextChatService` is receiving an incoming message.
36572
36572
  *
@@ -3319,3 +3319,12 @@ interface UserSubscriptionStatus {
3319
3319
  interface ExpirationDetails {
3320
3320
  ExpirationReason: Enum.SubscriptionExpirationReason;
3321
3321
  }
3322
+
3323
+ interface PromptBulkPurchaseFinishedResults {
3324
+ RobuxSpent: number;
3325
+ Items: Array<{
3326
+ type: Enum.MarketplaceProductType;
3327
+ id: string;
3328
+ status: Enum.MarketplaceItemPurchaseStatus;
3329
+ }>;
3330
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rbxts/types",
3
- "version": "1.0.826",
3
+ "version": "1.0.828",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },