Fix voice text channel detection & cross-channel hour purge #1
Reference in New Issue
Block a user
No description provided.
Delete Branch "dev"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Two fixes in
src/handlers.rs:1. Voice text channel detection
Messages sent in voice channel text threads have a different
channel_idthan the parent voice channel. Themessagehandler now falls through to checkmsg.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.