AI Integration Quick Reference
AI Integration Quick Reference
BLOCKED_BY_ME | HAS_BLOCKED_ME | BOTH (default)Block Users
Block users to prevent all communication with them. UseblockUsers() with an array of UIDs.
- JavaScript
- TypeScript
- Async/Await
"success" or "fail" as values.
The method returns an array of User objects with the blockedByMe field set to true. Access the response data using getter methods:
| Field | Getter | Return Type | Description |
|---|---|---|---|
| uid | getUid() | string | Unique user ID |
| name | getName() | string | Display name of the user |
| blockedByMe | getBlockedByMe() | boolean | Whether the logged-in user has blocked this user |
| hasBlockedMe | getHasBlockedMe() | boolean | Whether this user has blocked the logged-in user |
Unblock Users
Unblock previously blocked users usingunblockUsers() with an array of UIDs.
- JavaScript
- TypeScript
- Async/Await
"success" or "fail" as values.
The method returns an array of User objects with the blockedByMe field set to false. Access the response data using getter methods:
| Field | Getter | Return Type | Description |
|---|---|---|---|
| uid | getUid() | string | Unique user ID |
| name | getName() | string | Display name of the user |
| blockedByMe | getBlockedByMe() | boolean | Whether the logged-in user has blocked this user |
| hasBlockedMe | getHasBlockedMe() | boolean | Whether this user has blocked the logged-in user |
Get List of Blocked Users
UseBlockedUsersRequestBuilder to fetch blocked users with filtering and pagination.
Set Limit
Sets the number of blocked users to fetch per request.- Set Limit
- TypeScript
Set Search Keyword
Filters blocked users by a search string.- Set Search Keyword
- TypeScript
Set Direction
Filters by block direction:BLOCKED_BY_ME— Users blocked by the logged-in userHAS_BLOCKED_ME— Users who have blocked the logged-in userBOTH— Both directions (default)
- Set Direction
- TypeScript
build() to get the BlockedUsersRequest object, then call fetchNext() to retrieve blocked users.
- JavaScript
- TypeScript
Next Steps
Retrieve Users
Fetch and filter user lists
User Presence
Track online/offline status of users
User Management
Create, update, and delete users
Flag Message
Report inappropriate messages from users