Discord Bot icon

Discord Bot

Send messages and manage slash commands for Discord bots

Ban Member

AI-generated

Summary

Bans a user from a Discord guild and can delete up to seven days of that user’s recent messages. Provide the guild and user IDs; optionally include a reason and the message deletion period.

Inputs

  • Guild ID (required) — ID of the guild where the user will be banned. Can be supplied from a trigger, for example {{ $JSON.guildId }}.
  • User ID (required) — Discord ID of the user to ban. Can be supplied from a trigger, for example {{ $JSON.userId }}.
  • Reason — Optional reason recorded in the guild audit log.
  • Delete Message Days — Number of days of the user’s recent messages to delete, from 0 to 7; defaults to 0.

Output shape

Not established by the provided source excerpt.

The operation’s runtime implementation is omitted from the source pack, so its returned data shape cannot be confirmed.

Links

Discussion