Discord icon

Discord

Interact with Discord API - Full Bot Features

Overview

This node interacts with the Discord API to perform various operations related to Discord members, specifically including the ability to kick a member from a guild (server). It is useful for managing user membership in Discord servers, such as removing disruptive users. For example, it can be used in automated moderation workflows to kick a user based on certain triggers or conditions.

Use Case Examples

  1. Kick a user from a Discord guild by specifying the guild ID and user ID, optionally providing a reason for the kick that appears in the audit log.
  2. Use the node to manage members by kicking them as part of a moderation process in a Discord server.

Properties

Name Meaning
Guild ID The ID of the Discord server (guild) where the member is located.
User ID The ID of the user to be kicked from the guild.
Additional Fields Optional parameters for the kick operation, including reason for the kick (appears in audit log).

Output

JSON

  • success - Indicates if the kick operation was successful.
  • userId - The ID of the user who was kicked.
  • kicked - Boolean indicating the user was kicked.

Dependencies

  • Discord API with bot token for authentication

Troubleshooting

  • Ensure the bot has appropriate permissions to kick members in the guild, otherwise the operation will fail.
  • Verify that the provided guild ID and user ID are correct and that the user is a member of the guild.
  • Invalid or missing bot token credentials will prevent the node from authenticating with Discord API.

Links

Discussion