Files
tab-bot/docs/modules/media-channels.md
T
2026-09-06 19:10:40 -04:00

36 lines
1.5 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Media Channels
Delete non-media messages in configured channels.
Deletes messages without attachments in the configured channel. Needs Message Content. Staff bots can still post if you allow them.
## How to enable
1. Open **Studio → your bot → Modules**.
2. Find **Media Channels** (`media-channels`) and turn it **On**.
3. Fill settings. Channel and role fields are Discord snowflakes, not names.
4. Disable individual slash commands if you are near Discords 100-command cap.
5. **Reload the runner tab** so the client re-registers slash commands. Global command updates can take up to an hour; guild-less register in TabBot is application-wide.
## Required intents
`Guilds`, `GuildMessages`, `MessageContent`
Privileged intents (Message Content, Server Members, Presence) must also be enabled on the Discord application. TabBot cannot flip the Developer Portal for you.
## Settings
| Setting | Type | Default | Notes |
| --- | --- | --- | --- |
| `channelId` · Media-only channel | string | — | Channel ID |
## Slash commands
_No slash commands. This module runs from events or a background timer while the runner tab is open._
Options marked with `*` are required. Uncheck a command in Studio to keep the module without occupying a slash slot.
## Data and failure modes
Module state uses this origins KV (`tabbot-store`) and the runner process. There is no HoneyPeer server-side copy. Closing the runner tab stops event handlers and timers. Official modules are GNU GPL v3 or later.