Discord icon

Discord

Interact with Discord API - Full Bot Features

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

  1. Automatically add a role to a member when they join a guild.
  2. Kick a member from a guild based on certain conditions.
  3. 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 ID
  • username - Member's username
  • nickname - Member's nickname in the guild
  • joinedTimestamp - Timestamp when the member joined the guild
  • roles - 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

Discussion