Discord icon

Discord

Interact with Discord API - Full Bot Features

Overview

This node interacts with the Discord API to perform various voice channel operations within a Discord server (guild). Specifically, the 'Disconnect Member' operation disconnects a specified user from their current voice channel in the guild. This is useful for managing voice channel participation, such as removing users from voice chats when necessary.

Use Case Examples

  1. Disconnect a user from a voice channel in a Discord server to moderate voice chat activity.
  2. Automatically disconnect users from voice channels based on certain triggers or conditions in an automated workflow.

Properties

Name Meaning
Guild ID The ID of the Discord server (guild) where the voice channel operation will be performed.
User ID The ID of the user to disconnect from the voice channel.
Additional Fields Optional additional parameters that can be used for other operations but are not specifically used in the disconnect member operation.

Output

JSON

  • success - Indicates if the disconnection action was successful.
  • userId - The ID of the user who was disconnected.
  • disconnected - Boolean indicating the user was disconnected from the voice channel.

Dependencies

  • Discord API
  • Bot token credential for authentication

Troubleshooting

  • Ensure the bot has the necessary permissions to manage voice channels and disconnect members in the guild.
  • Verify that the user is currently connected to a voice channel before attempting to disconnect; otherwise, an error will be thrown.
  • Check that the provided Guild ID and User ID are correct and that the bot is a member of the guild.

Discussion