FriendService
An internal service which is used to send, cancel, accept and decline friend requests in-game.
This class is not creatable. Instances of this class cannot be created with Instance.new.
This class is a service. It is a singleton that may be acquired with GetService.
| Memory category | Instances |
|---|
Member index 2
Removed member index 12
| History | Member | |
|---|---|---|
| 315 | GetAreUsersFriends(userId: int, otherUserId: int, allowOfflineUsers: bool = false): bool | |
| 310 | SetBreakFriendUrl(url: string): void | |
| 285 | SetCreateFriendRequestUrl(url: string): void | |
| 285 | SetDeleteFriendRequestUrl(url: string): void | |
| 285 | SetEnabled(enable: bool): void | |
| 285 | SetFriendsOnlineUrl(url: string): void | |
| 310 | SetGetFriendsUrl(url: string): void | |
| 310 | SetMakeFriendUrl(url: string): void | |
| 308 | StartReceivingPlatformFriendsEvents(): void | |
| 308 | FriendsEvent(eventInfo: Dictionary, friendData: Array) |
Description
A service which is used to send, cancel, accept and decline friend requests in-game. It is primarily used by the PlayerListScript to send friend requests with the leaderboard.
History 43
- 726 Remove
- 726 Remove
- 553 Add
- 553 Add
- 462 Change ThreadSafety of FriendsUpdated from to Unsafe
- 462 Change ThreadSafety of GetPlatformFriends from to Unsafe
- 315 Remove GetAreUsersFriends
- 310 Remove SetMakeFriendUrl
- 310 Remove SetGetFriendsUrl
- 310 Remove SetBreakFriendUrl
- 310 Add GetAreUsersFriends
- 308 Add FriendsUpdated
- 308 Remove FriendsEvent
- 308 Remove StartReceivingPlatformFriendsEvents
- 299 Change Security of FriendsEvent from RobloxSecurity to RobloxScriptSecurity
- 285 Change Security of FriendsEvent from RobloxScriptSecurity to RobloxSecurity
- 285 Remove SetFriendsOnlineUrl
- 285 Remove SetEnabled
- 285 Remove SetDeleteFriendRequestUrl
- 285 Remove SetCreateFriendRequestUrl
- 284 Change Security of FriendsEvent from RobloxSecurity to RobloxScriptSecurity
- 284 Add SetFriendsOnlineUrl
- 284 Add SetEnabled
- 284 Add SetDeleteFriendRequestUrl
- 284 Add SetCreateFriendRequestUrl
- 285 Change Security of FriendsEvent from RobloxScriptSecurity to RobloxSecurity
- 285 Remove SetFriendsOnlineUrl
- 285 Remove SetEnabled
- 285 Remove SetDeleteFriendRequestUrl
- 285 Remove SetCreateFriendRequestUrl
- 283 Add GetPlatformFriends
- 282 Remove GetPlatformFriends
- 283 Add GetPlatformFriends
- 270 Add FriendsEvent
- 270 Add StartReceivingPlatformFriendsEvents
- 119 Add SetFriendsOnlineUrl
- 47 Add SetMakeFriendUrl
- 47 Add SetGetFriendsUrl
- 47 Add SetEnabled
- 47 Add SetDeleteFriendRequestUrl
- 47 Add SetCreateFriendRequestUrl
- 47 Add SetBreakFriendUrl
- 47 Add FriendService
Members 2
FriendsUpdated
| Parameters (1) | |
|---|---|
| friendData | Array |
| Security | RobloxScriptSecurity |
|---|---|
| Thread safety | Unsafe |
History 2
- 462 Change ThreadSafety of FriendsUpdated from to Unsafe
- 308 Add FriendsUpdated
GetPlatformFriends
| Parameters (0) | ||
|---|---|---|
| No parameters. | ||
| Returns (1) | ||
| Array | ||
This function yields. It will block the calling thread until completion.
| Security | RobloxScriptSecurity |
|---|---|
| Thread safety | Unsafe |
History 4
- 462 Change ThreadSafety of GetPlatformFriends from to Unsafe
- 283 Add GetPlatformFriends
- 282 Remove GetPlatformFriends
- 283 Add GetPlatformFriends
Removed members 12
FriendsEvent
| Parameters (2) | |
|---|---|
| eventInfo | Dictionary |
| friendData | Array |
| Security | RobloxScriptSecurity |
|---|
History 6
- 308 Remove FriendsEvent
- 299 Change Security of FriendsEvent from RobloxSecurity to RobloxScriptSecurity
- 285 Change Security of FriendsEvent from RobloxScriptSecurity to RobloxSecurity
- 284 Change Security of FriendsEvent from RobloxSecurity to RobloxScriptSecurity
- 285 Change Security of FriendsEvent from RobloxScriptSecurity to RobloxSecurity
- 270 Add FriendsEvent
GetAreUsersFriends
| Parameters (3) | Default | |
|---|---|---|
| userId | int | |
| otherUserId | int | |
| allowOfflineUsers | bool | false |
| Returns (1) | ||
| bool | ||
This function yields. It will block the calling thread until completion.
| Security | RobloxScriptSecurity |
|---|
History 2
- 315 Remove GetAreUsersFriends
- 310 Add GetAreUsersFriends
SetBreakFriendUrl
| Parameters (1) | ||
|---|---|---|
| url | string | |
| Returns (1) | ||
| void | ||
| Security | LocalUserSecurity |
|---|
History 2
- 310 Remove SetBreakFriendUrl
- 47 Add SetBreakFriendUrl
SetCreateFriendRequestUrl
| Parameters (1) | ||
|---|---|---|
| url | string | |
| Returns (1) | ||
| void | ||
| Security | LocalUserSecurity |
|---|
History 4
SetDeleteFriendRequestUrl
| Parameters (1) | ||
|---|---|---|
| url | string | |
| Returns (1) | ||
| void | ||
| Security | LocalUserSecurity |
|---|
History 4
SetEnabled
| Parameters (1) | ||
|---|---|---|
| enable | bool | |
| Returns (1) | ||
| void | ||
| Security | LocalUserSecurity |
|---|
History 4
- 285 Remove SetEnabled
- 284 Add SetEnabled
- 285 Remove SetEnabled
- 47 Add SetEnabled
SetFriendsOnlineUrl
| Parameters (1) | ||
|---|---|---|
| url | string | |
| Returns (1) | ||
| void | ||
| Security | LocalUserSecurity |
|---|
History 4
- 285 Remove SetFriendsOnlineUrl
- 284 Add SetFriendsOnlineUrl
- 285 Remove SetFriendsOnlineUrl
- 119 Add SetFriendsOnlineUrl
SetGetFriendsUrl
| Parameters (1) | ||
|---|---|---|
| url | string | |
| Returns (1) | ||
| void | ||
| Security | LocalUserSecurity |
|---|
History 2
- 310 Remove SetGetFriendsUrl
- 47 Add SetGetFriendsUrl
SetMakeFriendUrl
| Parameters (1) | ||
|---|---|---|
| url | string | |
| Returns (1) | ||
| void | ||
| Security | LocalUserSecurity |
|---|
History 2
- 310 Remove SetMakeFriendUrl
- 47 Add SetMakeFriendUrl
StartReceivingPlatformFriendsEvents
| Parameters (0) | ||
|---|---|---|
| No parameters. | ||
| Returns (1) | ||
| void | ||
| Security | RobloxScriptSecurity |
|---|