Actions53
- Message Actions
- Channel Actions
- Thread Actions
- Reaction Actions
- Guild (Server) Actions
- Member Actions
- Role Actions
- Voice Actions
- DM Actions
- Webhook Actions
- Invite Actions
Overview
This node interacts with the Discord API to perform various operations related to Discord members within a guild (server). Specifically, the 'Member List' operation fetches and lists all members of a specified Discord guild. This is useful for scenarios where you need to retrieve member information for management, reporting, or automation purposes within a Discord server.
Use Case Examples
- Listing all members of a Discord guild to display their usernames and IDs.
- Automating member management tasks by retrieving member lists for further processing.
Properties
| Name | Meaning |
|---|---|
| Guild ID | The ID of the Discord server (guild) from which to list members. |
| User ID | The ID of the user (used in other member operations but required in the node properties). |
| Additional Fields | Optional additional parameters for other operations but not specifically used in the 'List' operation for members. |
Output
JSON
id- The unique identifier of the member.username- The username of the member.nickname- The nickname of the member in the guild, if set.
Dependencies
- Discord API
- discord.js library
Troubleshooting
- Ensure the provided Guild ID is correct and the bot has permission to access the guild members.
- The bot must have the 'Guild Members' intent enabled in the Discord developer portal and in the client initialization to fetch members.
- Common errors include 'Guild not found' if the Guild ID is invalid or the bot is not part of the guild.
- If the node fails to fetch members, check the bot token and permissions.
Links
- Discord.js GuildMemberManager.fetch() - Documentation on fetching guild members using discord.js library.
- Discord Gateway Intents - Information about enabling intents required for fetching guild members.