Disglow icon

Disglow

Interact with Disglow API

Overview

This node interacts with the Disglow API to manage Discord server-related data and actions. Specifically, the "Get Server Roles" operation retrieves all roles associated with a specified Discord server. This is useful for workflows that need to automate role management, audit server permissions, or synchronize roles with other systems.

Practical examples:

  • Automatically fetching server roles to display them in a dashboard.
  • Using role data to assign or remove users from specific roles programmatically.
  • Auditing roles before performing bulk updates or integrations.

Properties

Name Meaning
Server ID The unique identifier of the Discord server whose roles you want to retrieve. Example: 1234567890123456789

Output

The output JSON contains the list of roles for the specified Discord server as returned by the Disglow API. Each role typically includes details such as role ID, name, permissions, color, and other metadata defined by Discord's role structure.

No binary data is output by this operation.

Example output structure (simplified):

[
  {
    "id": "role_id_1",
    "name": "Admin",
    "permissions": "...",
    "color": 3447003,
    ...
  },
  {
    "id": "role_id_2",
    "name": "Member",
    "permissions": "...",
    "color": 0,
    ...
  }
]

Dependencies

  • Requires an active API key credential for the Disglow API configured in n8n.
  • The node makes authenticated HTTP requests to https://api.disglow.app/api/v1.
  • No additional external dependencies are needed beyond the configured API authentication.

Troubleshooting

  • Common issues:

    • Invalid or missing Server ID will cause the API request to fail.
    • Expired or incorrect API credentials will result in authentication errors.
    • Network connectivity problems can prevent successful API calls.
  • Error messages:

    • "The operation "getServerRoles" is not known!": Indicates a misconfiguration or unsupported operation; ensure the correct operation is selected.
    • API error responses (e.g., 401 Unauthorized, 404 Not Found) will be passed through; verify server ID and API key validity.
  • Resolutions:

    • Double-check the Server ID input for correctness.
    • Verify that the API key credential is valid and has necessary permissions.
    • Ensure network access to the Disglow API endpoint.

Links and References

Discussion