You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Verify the Discord user who triggered an action actually has the required permissions:
198
+
199
+
```bash
200
+
discli member kick "My Server" target --triggered-by 123456789
201
+
```
202
+
203
+
This checks that user `123456789` has `kick_members` permission in the server. Server owners and administrators always pass. If the user can't be found in cache, it fetches from the API. If that also fails, it warns but doesn't block.
204
+
205
+
### Audit Log
206
+
207
+
Every destructive action is logged to `~/.discli/audit.log`:
208
+
209
+
```bash
210
+
# View recent actions
211
+
discli audit show --limit 20
212
+
213
+
# JSON output
214
+
discli --json audit show
215
+
216
+
# Clear the log
217
+
discli audit clear
218
+
```
219
+
220
+
Example output:
221
+
```
222
+
[2026-03-14 12:30:00] member kick ok (by 123456789)
223
+
[2026-03-14 12:31:00] channel delete ok
224
+
[2026-03-14 12:32:00] permission_check denied
225
+
```
226
+
227
+
### Rate Limiting
228
+
229
+
Built-in rate limiter (5 calls per 5 seconds) on destructive actions to prevent Discord API bans. If the limit is hit, discli waits automatically.
230
+
146
231
## Resolving Identifiers
147
232
148
233
All commands accept both **IDs** and **names**:
@@ -158,21 +243,23 @@ All commands accept both **IDs** and **names**:
158
243
159
244
## JSON Output
160
245
161
-
Add `--json`to any command for machine-readable output:
246
+
Add `--json`**before the subcommand** for machine-readable output:
0 commit comments