Disglow icon

Disglow

Interact with Disglow API

Overview

This node interacts with the Disglow API to manage Discord server-related operations. Specifically, for the Server resource and Generate Invite operation, it generates a Discord invite link tied to a specific server and email address. This invite can have constraints such as expiration time and maximum number of uses.

Typical use cases include:

  • Automating the process of inviting users to a Discord server via email.
  • Controlling invite validity by setting expiration times and usage limits.
  • Integrating Discord server invites into workflows that require user onboarding or event invitations.

For example, an organization could automatically send invite links to new members' emails with a limited validity period and usage count to ensure controlled access.

Properties

Name Meaning
Server ID The unique identifier of the Discord server where the invite will be generated.
Email The email address to which the invite will be sent.
Max Age (seconds) The duration in seconds before the invite expires. Default is 86400 seconds (24 hours).
Max Uses The maximum number of times the invite link can be used. Default is 1 use.

Output

The output JSON contains the response from the Disglow API after generating the invite. This typically includes details about the created invite link such as the URL, expiration, usage limits, and possibly metadata about the invite status.

No binary data output is produced by this operation.

Example output structure (simplified):

{
  "invite_url": "https://discord.gg/abc123",
  "max_age": 86400,
  "max_uses": 1,
  "email": "user@example.com",
  "server_id": "1234567890123456789"
}

Dependencies

  • Requires an active connection to the Disglow API.
  • Needs an API authentication token configured in n8n credentials to authorize requests.
  • The base URL for API calls is https://api.disglow.app/api/v1.
  • Proper permissions on the Discord server to generate invites via the API.

Troubleshooting

  • Common issues:

    • Invalid or missing server ID may cause the API to reject the request.
    • Incorrect or unauthorized API credentials will result in authentication errors.
    • Providing an invalid email format might cause the invite generation to fail.
    • Setting maxAge or maxUses to zero or negative values may lead to unexpected behavior or errors.
  • Error messages:

    • "The operation "generateInvite" is not known!": Indicates a misconfiguration or unsupported operation; verify the selected operation.
    • Authentication errors usually mention invalid tokens or permission denied; check API key validity and scopes.
    • Validation errors from the API may specify which input parameter is incorrect; review property values accordingly.

Links and References

Discussion