🔓
Member unbanned
guildBanRemoveGUILD_BAN_REMOVETriggerFires when a member is unbanned.
When to use this
- →Logging unbans
- →Restoring access notifications
On the canvas
This is what the trigger looks like in your bot's Triggers tab. The sparks listed are available in every node inside the linked flow.
🔓Trigger
Member unbanned
guildBanRemoveSparks in this flow
{{input.guild.id}}Your Discord server's unique ID{{input.guild.name}}Your server's name{{input.guild.memberCount}}How many members are in the server{{ban.user.id}}Discord ID of the unbanned user{{ban.user.username}}Username of the unbanned userAvailable sparks
Use these in any piece config field inside flows triggered by this event.
| Spark | Type | Description |
|---|---|---|
{{input.guild.id}} | string | Your Discord server's unique ID |
{{input.guild.name}} | string | Your server's name |
{{input.guild.memberCount}} | string | How many members are in the server |
{{ban.user.id}} | string | Discord ID of the unbanned user |
{{ban.user.username}} | string | Username of the unbanned user |
📐
In TypeScript, this would be…
Not something you need to write — Kitcord registers these listeners automatically from your Kit.
TypeScript
client.on("guildBanRemove", (ban) => {
// {{ban.user.id}}
});