Discord Tools icon

Discord Tools

Discord utility tools - Message fetching, user info, and more

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

  1. Monitoring user presence to trigger notifications when a user comes online.
  2. 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.
  • presence
    • status - 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

Discussion