members_kick
members_kick
Section titled “members_kick”Category: members
Kick (remove) a member from a guild. DESTRUCTIVE — they lose roles and must rejoin.
When to use
Section titled “When to use”- Force-disconnect a member without banning them.
When NOT to use
Section titled “When NOT to use”- Permanent ban → use
members_ban.
| Field | Type | Required | Description |
|---|---|---|---|
guild_id | string | yes | Guild to kick from |
user_id | string | yes | Member to kick |
audit_reason | string | no | Reason recorded in audit log (X-Audit-Log-Reason header) |
Returns
Section titled “Returns”\{kicked, user_id, guild_id\}.
Output schema
Section titled “Output schema”| Field | Type | Required | Description |
|---|---|---|---|
kicked | boolean | yes | |
user_id | string | yes | Discord user ID |
guild_id | string | yes | Discord guild (server) ID |
Annotations
Section titled “Annotations”| Property | Value |
|---|---|
| Read-only | no |
| Destructive | yes |
| Idempotent | yes |
| Open-world | yes |
| Confirmation required | yes (__confirm:true required) |