Actions43
- Add Reaction
- Add Role to Member
- Add Thread Member
- Ban Member
- Bulk Delete Messages
- Create Channel
- Create Invite
- Create Role
- Create Scheduled Event
- Create Thread
- Create Thread From Message
- Delete Channel
- Delete Message
- Delete Role
- Delete Scheduled Event
- Delete Slash Command
- Edit Channel
- Edit Role
- Edit Scheduled Event
- Edit Thread
- Fetch Member
- Fetch Message
- Fetch Message History
- Kick Member
- List Scheduled Events
- List Slash Commands
- Pin Message
- Register Context Menu Command
- Register Slash Command
- Remove Own Reaction
- Remove Role From Member
- Remove Thread Member
- Respond to Interaction
- Send Message
- Send Message with Poll
- Send Modal
- Set Bot Activity
- Set Bot Status
- Set Member Nickname
- Timeout Member
- Unban Member
- Unpin Message
- Update Message
Ban Member
AI-generatedSummary
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.