@rbxts/types 1.0.784 → 1.0.785
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.
- package/include/generated/None.d.ts +2 -5
- package/include/roblox.d.ts +43 -0
- package/package.json +1 -1
|
@@ -14836,9 +14836,6 @@ interface ScreenGui extends LayerCollector {
|
|
|
14836
14836
|
*/
|
|
14837
14837
|
IgnoreGuiInset: boolean;
|
|
14838
14838
|
SafeAreaCompatibility: Enum.SafeAreaCompatibility;
|
|
14839
|
-
/**
|
|
14840
|
-
* Tags: NotBrowsable
|
|
14841
|
-
*/
|
|
14842
14839
|
ScreenInsets: Enum.ScreenInsets;
|
|
14843
14840
|
}
|
|
14844
14841
|
|
|
@@ -29206,7 +29203,7 @@ interface Players extends Instance {
|
|
|
29206
29203
|
/**
|
|
29207
29204
|
* Tags: Yields
|
|
29208
29205
|
*/
|
|
29209
|
-
BanAsync(this: Players, config:
|
|
29206
|
+
BanAsync(this: Players, config: BanAsyncConfig): void;
|
|
29210
29207
|
/**
|
|
29211
29208
|
* Tags: Yields
|
|
29212
29209
|
*/
|
|
@@ -29431,7 +29428,7 @@ interface Players extends Instance {
|
|
|
29431
29428
|
/**
|
|
29432
29429
|
* Tags: Yields
|
|
29433
29430
|
*/
|
|
29434
|
-
UnbanAsync(this: Players, config:
|
|
29431
|
+
UnbanAsync(this: Players, config: UnbanAsyncConfig): void;
|
|
29435
29432
|
/**
|
|
29436
29433
|
* The PlayerAdded event fires when a player enters the game. This is used to fire an event when a player joins a game, such as loading the player's saved [GlobalDataStore](https://developer.roblox.com/en-us/api-reference/class/GlobalDataStore) data.
|
|
29437
29434
|
*
|
package/include/roblox.d.ts
CHANGED
|
@@ -2966,3 +2966,46 @@ declare const enum RobloxEmoji {
|
|
|
2966
2966
|
Premium = "",
|
|
2967
2967
|
Verified = "",
|
|
2968
2968
|
}
|
|
2969
|
+
|
|
2970
|
+
interface BanAsyncConfig {
|
|
2971
|
+
/**
|
|
2972
|
+
* (Required) UserID of the players to be banned.
|
|
2973
|
+
*
|
|
2974
|
+
* Max size is `50`. */
|
|
2975
|
+
UserIds: Array<number>;
|
|
2976
|
+
/**
|
|
2977
|
+
* (Required) Duration of the ban in seconds. Permanent bans should have a value of `-1`.
|
|
2978
|
+
*
|
|
2979
|
+
* Zero and all other negative values are invalid.
|
|
2980
|
+
*/
|
|
2981
|
+
Duration: number;
|
|
2982
|
+
/**
|
|
2983
|
+
* (Required) The message that will be displayed to users when they attempt to and fail to join an experience. Max size is 400.
|
|
2984
|
+
*/
|
|
2985
|
+
DisplayReason: string;
|
|
2986
|
+
/**
|
|
2987
|
+
* (Required) Any internal messaging that will be returned when querying the user's ban history. Max size is 1000.
|
|
2988
|
+
*/
|
|
2989
|
+
PrivateReason: string;
|
|
2990
|
+
/**
|
|
2991
|
+
* (Optional, default is `true`) Propagates the ban to all places within this universe.
|
|
2992
|
+
*/
|
|
2993
|
+
ApplyToUniverse?: boolean;
|
|
2994
|
+
/**
|
|
2995
|
+
* (Optional, default is `false`) When `true`, Roblox does not attempt to ban alt accounts.
|
|
2996
|
+
*/
|
|
2997
|
+
ExcludeAltAccounts?: boolean;
|
|
2998
|
+
}
|
|
2999
|
+
|
|
3000
|
+
interface UnbanAsyncConfig {
|
|
3001
|
+
/**
|
|
3002
|
+
* (Required) UserIDs to be force allowed into the experience(s).
|
|
3003
|
+
*
|
|
3004
|
+
* Max size is `50`.
|
|
3005
|
+
*/
|
|
3006
|
+
UserIds: Array<number>;
|
|
3007
|
+
/**
|
|
3008
|
+
* (Optional, default is `true`) Propagates the unban to all places within this universe.
|
|
3009
|
+
*/
|
|
3010
|
+
ApplyToUniverse?: boolean;
|
|
3011
|
+
}
|