Add kick and ban to the client context menu

Wires up "Aus dem Channel kicken", "Vom Server kicken", and "Bannen"
(previously disabled placeholders). Kick uses tsclientlib's typed
Client::kick() builder; ban has no typed wrapper so it's built as a
raw "banclient" command (same OutCommand::write_arg approach used for
the connection-info requests). Both use send_with_result() so a
missing-permission rejection surfaces as a visible error.

"Channel-Gruppe zuweisen"/"Server-Gruppe zuweisen" remain disabled -
they need the server's group list threaded through first, left for a
follow-up.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
MoepchiandClaude Sonnet 5 committed 2026-08-05 11:21:52 +02:00
1 parent 74f688aba8
commit 330ecccadb
6 files changed
+287 -3

No files matched your search

+21
View File
@@ -1632,6 +1632,27 @@
background: linear-gradient(var(--button-bg-hover-1), var(--button-bg-hover-2));
}
.ts-ban-compose {
flex-wrap: wrap;
max-width: 380px;
}
.ts-ban-duration-field {
display: flex;
align-items: center;
gap: 0.4rem;
font-size: 12px;
color: var(--text-muted);
}
.ts-ban-duration-field select {
background: var(--input-bg);
color: var(--input-text);
border: 1px solid var(--border);
border-radius: 3px;
padding: 0.2rem 0.4rem;
}
.ts-poke-notice {
display: flex;
align-items: center;