Discord Tools icon

Discord Tools

Discord utility tools - Message fetching, user info, and more

Overview

This node operation sets the slowmode duration for a specified text channel in a Discord server (guild). Slowmode is a feature that limits how frequently users can send messages in a channel by enforcing a cooldown period between messages. Setting slowmode can help manage message flow and reduce spam in busy channels. For example, a community manager might use this node to enable a 10-second slowmode during high-traffic events to prevent message flooding.

Use Case Examples

  1. Set slowmode to 10 seconds in a specific channel to reduce spam during an event.
  2. Disable slowmode by setting the duration to 0 to allow users to send messages without delay.

Properties

Name Meaning
Guild ID The ID of the Discord server (guild) where the channel is located.
Channel ID The ID of the text channel where slowmode will be set.
Slowmode Duration (seconds) The duration of the slowmode in seconds. Setting to 0 disables slowmode.
Additional Options Optional parameters for extended functionality, though not directly used in the set slowmode operation.

Output

JSON

  • success - Indicates if the slowmode was successfully set.
  • channelId - The ID of the channel where slowmode was set.
  • slowmodeDuration - The slowmode duration in seconds that was applied to the channel.

Dependencies

  • Discord API via discord.js library
  • An API key credential for Discord bot authentication

Troubleshooting

  • Ensure the provided Guild ID and Channel ID are correct and that the bot has access to the specified channel.
  • The channel must be a text channel; slowmode cannot be set on voice or category channels.
  • If the bot lacks the necessary permissions to manage the channel, the operation will fail.
  • Common error messages include 'Channel not found' if the channel ID is invalid or inaccessible, and 'Slowmode only works on text channels' if the channel type is incorrect.

Links

Discussion