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 update member settings within a Discord guild (server). It allows updating member roles, kicking members, and fetching member information. This is useful for managing user permissions and roles in a Discord community automatically, such as adding or removing roles based on external triggers or automating moderation tasks.
Use Case Examples
- Automatically add a role to a member when they join a guild.
- Kick a member from a guild based on certain conditions.
- Fetch member details to verify their roles or nickname.
Properties
| Name | Meaning |
|---|---|
| Guild ID | The ID of the Discord server (guild) where the member belongs. |
| User ID | The ID of the user (member) to update. |
| Role ID | The ID of the role to add or remove from the member. |
| Additional Fields | Optional fields for the update operation, such as reason for audit logs. |
Output
JSON
id- Member IDusername- Member's usernamenickname- Member's nickname in the guildjoinedTimestamp- Timestamp when the member joined the guildroles- Array of roles assigned to the member, each with id and name
Dependencies
- Discord API
- Bot token credential
Troubleshooting
- Ensure the bot token credential is valid and has the necessary permissions to manage members in the guild.
- Verify that the Guild ID and User ID are correct and that the user is a member of the specified guild.
- Common errors include 'Member not found' if the user ID is invalid or not part of the guild, and permission errors if the bot lacks required privileges.
Links
- Discord.js GuildMember Documentation - Reference for member management methods used in the node.
- Discord Permissions Documentation - Details on permission bit strings and role management.