Actions30
- Message Actions
- User Actions
- Channel Actions
- Guild Actions
- Emoji Actions
- Analytics Actions
- Moderation Actions
- Backup Actions
- DM Actions
Overview
This node interacts with the Discord API to perform various user-related operations, specifically for the 'Get User Status' operation. It fetches the presence status of a specified user, including their current status (online, offline, etc.) and any active activities (like playing a game or streaming). This is useful for monitoring user availability or activity within a Discord server.
Use Case Examples
- Monitoring user presence to trigger notifications when a user comes online.
- Fetching user status to display in a dashboard or report.
Properties
| Name | Meaning |
|---|---|
| User ID | The ID of the user whose status is to be retrieved. |
| Additional Options | Optional parameters that can modify the behavior of the operation, such as including bots, filtering messages, or audit log settings. |
Output
JSON
userId- The ID of the user.username- The username of the user.presencestatus- The user's current presence status (e.g., online, offline, idle).activities- List of activities the user is currently engaged in, including name, type, details, and state.
Dependencies
- Discord API access via a bot token credential
Troubleshooting
- Ensure the provided User ID is correct and the bot has permission to access user presence information.
- Common errors include 'User not found' if the User ID is invalid or the bot lacks access.
- If presence data is null, the user might be offline or presence information is not available due to privacy settings.
Links
- Discord Presence Update - Official Discord documentation on user presence and activities.