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 'Mute Member' operation allows the bot to server mute a specified user in a voice channel. This is useful for managing voice channel behavior, such as muting disruptive users during meetings or events.

Use Case Examples

  1. Muting a user in a voice channel to prevent them from speaking during a live event.
  2. Automatically muting users when they join a voice channel as part of moderation rules.

Properties

Name Meaning
Guild ID The ID of the Discord server (guild) where the voice channel and user are located.
User ID The ID of the user to be muted in the voice channel.
Additional Fields Optional additional parameters that can be used for various operations, though not specifically used for muting in this context.

Output

JSON

  • success - Indicates if the mute operation was successful.
  • userId - The ID of the user who was muted.
  • muted - Boolean indicating the user is muted (true).

Dependencies

  • Discord API

Troubleshooting

  • Ensure the bot has the necessary permissions to mute members in the guild, otherwise the operation will fail.
  • Verify that the user is currently connected to a voice channel; otherwise, the node will throw an error indicating the member is not in a voice channel.
  • Check that the provided Guild ID and User ID are correct and correspond to existing entities in the Discord server.
  • Common error: 'Member is not in a voice channel' - occurs if the user is not connected to any voice channel when attempting to mute. Solution: Confirm user is in a voice channel before muting.

Links

Discussion