Actions7
- Server Actions
- User Actions
- Logs Actions
- Stats Actions
Overview
This node integrates with the Disglow API to manage Discord server users and their roles. Specifically, the Add User to Roles operation allows you to assign one or more Discord roles to a user within a specified Discord server. This is useful for automating role management in Discord communities, such as granting access permissions, organizing members by interest groups, or managing event participation.
Practical examples:
- Automatically assign roles to new users when they join a Discord server.
- Batch update user roles based on external criteria (e.g., membership status in another system).
- Manage role assignments triggered by workflows, such as after a purchase or registration.
Properties
| Name | Meaning |
|---|---|
| Server ID | The unique identifier of the Discord server where the user roles will be modified. |
| User Identifier | The identifier of the user to modify roles for; can be either a Discord user ID or email. |
| Identifier Type | Specifies whether the user identifier is a "Discord ID" or an "Email". |
| Role IDs | Comma-separated list of Discord role IDs to add to the user. |
Output
The node outputs JSON data representing the response from the Disglow API after attempting to add roles to the user. The structure typically includes confirmation of the roles added or details about the updated user roles. The exact fields depend on the API response but generally confirm success or provide error information.
No binary data output is produced by this operation.
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 and valid role IDs are necessary for successful role assignment.
Troubleshooting
Common issues:
- Invalid or missing Discord server ID or user identifier may cause errors.
- Incorrect role IDs or roles that do not exist on the server will result in failure to assign roles.
- Insufficient permissions for the API key or Discord bot to modify roles.
- Network or authentication failures connecting to the Disglow API.
Error messages:
"The operation "addUserToRoles" is not known!"— indicates a misconfiguration or unsupported operation selected.- API errors returned from Disglow will be passed through in the output JSON under an
errorfield if the node is set to continue on fail.
Resolution tips:
- Verify all input properties are correctly set and correspond to existing Discord entities.
- Ensure the API key has the required scopes and permissions.
- Check network connectivity and API availability.
- Use the "Test Connection" operation in the same node to verify API access.
Links and References
- Disglow API Documentation (Assumed official docs URL for reference)
- Discord Developer Portal
- n8n Documentation
