Actions32
- Messages Actions
- Channels Actions
- Guilds Actions
- Users Actions
- Webhooks Actions
Guilds → Get Guild Members
AI-generatedOverview
The "Get Guild Members" operation of the "Guilds" resource in this Discord Enhanced node allows you to retrieve a list of members from a specified Discord guild (server). This is useful for scenarios where you need to manage or analyze the membership of a guild, such as syncing member data with an external system, auditing members, or performing bulk operations on users.
Practical examples include:
- Fetching all members of a guild to generate reports or statistics.
- Retrieving a limited number of members for quick lookups or partial processing.
- Integrating guild member data into CRM or community management tools.
Properties
| Name | Meaning |
|---|---|
| Guild ID | The unique identifier of the guild (server) from which to fetch members. |
| Return All | Whether to return all guild members or limit the results to a specific number. |
| Limit | The maximum number of guild members to return if not returning all. Value between 1-100. |
Output
The output is a JSON array where each item represents a guild member object retrieved from the Discord API. Each member object typically includes details such as user ID, username, roles, join date, and other membership-related information.
No binary data output is involved in this operation.
Dependencies
- Requires an active subscription and valid API key for the external "N8N Tools API" service, which acts as a proxy or enhancer for Discord API calls.
- The node uses OAuth2 credentials or an API key credential configured in n8n to authenticate requests.
- Proper permissions/scopes must be granted to the API token to access guild member data.
Troubleshooting
- Invalid Subscription or API Key: If the node throws an error about invalid subscription or API key, verify that your API key credential is correct and active.
- Permission Errors: Insufficient permissions on the Discord bot or API token can cause failures when fetching guild members. Ensure the bot has the
guilds.members.reador equivalent permission. - Limit Exceeded: The
Limitproperty accepts values up to 100. Setting a higher value may cause errors or unexpected behavior. - Network Issues: Connectivity problems with the external API service will result in request failures. Check network connectivity and service status.
- Unknown Resource/Operation: If the node configuration is incorrect, it may throw errors about unknown resources or operations.
Links and References
- Discord Developer Documentation - Guild Members
- n8n Documentation - Creating Custom Nodes
- N8N Tools API Documentation (generic reference, actual URL depends on service)