36 lines
1.5 KiB
Markdown
36 lines
1.5 KiB
Markdown
# 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 Discord’s 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 | none | 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 origin’s 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.
|