Disglow icon

Disglow

Interact with Disglow API

Overview

This node interacts with the Disglow API to manage Discord users and their roles within a server. Specifically, the "Remove User from Roles" operation allows you to either remove specific roles from a user or remove the user entirely from a Discord server.

Common scenarios where this node is useful include:

  • Automating role management in Discord servers based on external triggers or workflows.
  • Removing access or permissions from users by removing roles or kicking them out of the server.
  • Integrating Discord user management into broader automation pipelines without manual intervention.

For example, you could use this node to automatically remove expired members from certain roles or completely remove users who no longer meet community guidelines.

Properties

Name Meaning
Server ID The unique identifier of the Discord server where the user and roles exist.
User Identifier The identifier for the user to modify; can be either a Discord user ID or an email address.
Identifier Type Specifies whether the User Identifier is a Discord ID or an Email.
Role IDs Comma-separated list of Discord role IDs to remove from the user. Not required if removing user from server entirely.
Remove from Server Boolean flag indicating whether to remove the user entirely from the server instead of just removing specific roles.

Output

The node outputs JSON data representing the response from the Disglow API after attempting to remove roles or remove the user from the server. The structure depends on the API's response but generally includes confirmation of the action taken or error details.

No binary data output is produced by this operation.

Example output JSON might look like:

{
  "success": true,
  "message": "User roles removed successfully"
}

or, if removing the user from the server:

{
  "success": true,
  "message": "User removed from server"
}

In case of failure, the output will contain an error message.

Dependencies

  • Requires an active connection to the Disglow API via an API key credential configured in n8n.
  • The node uses HTTP requests authenticated against the Disglow API base URL: https://api.disglow.app/api/v1.
  • Proper permissions on the Discord server are necessary for role and user management actions.

Troubleshooting

  • Missing or invalid Server ID: Ensure the Server ID is correct and that the API key has access to that server.
  • Invalid User Identifier: Confirm the user ID or email is accurate and corresponds to a user in the specified server.
  • Role IDs not provided when required: When not removing the user entirely, at least one valid role ID must be supplied.
  • API errors: Errors returned from the API (e.g., permission denied, user not found) will appear in the output JSON under an error message. Check API credentials and user/server validity.
  • Network issues: Connectivity problems may cause request failures; verify network access to the Disglow API endpoint.

Links and References

Discussion