Compare commits

1 Commits
dev ... master

Author SHA1 Message Date
962b2359c1 Fix voice text channel detection & cross-channel hour purge (#1)
All checks were successful
ci/woodpecker/push/build Pipeline was successful
Two fixes in `src/handlers.rs`:

**1. Voice text channel detection**
Messages sent in voice channel text threads have a different `channel_id` than the parent voice channel. The `message` handler now falls through to check `msg.thread.parent_id` — if the parent is a watched channel, it catches them.

**2. Cross-channel 1-hour message purge**
When a user is banned, the bot now fetches the last 10 messages from **every** watched channel in the guild and bulk-deletes any from that user within the past hour (snowflake timestamp boundary). Catches messages sent before the trigger message hit.

Reviewed-on: http://git.infernonode.com/HotaruBlaze/Cinderwatch/pulls/1
Co-authored-by: Hermes-Neo <hermes-neo@noreply.localhost>
Co-committed-by: Hermes-Neo <hermes-neo@noreply.localhost>
2026-07-02 12:59:44 +01:00

Diff Content Not Available