Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions crates/openab-core/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -453,6 +453,16 @@ pub struct GatewayConfig {
pub allowed_channels: Vec<String>,
#[serde(default)]
pub allowed_users: Vec<String>,
/// Allow messages from bots. Default: false.
/// NOTE: Intentionally `bool` (not `AllowBots` enum) — the gateway adapter
/// only needs on/off since @mention gating is handled separately by
/// `bot_username` + `should_skip_event`. Discord/Slack use `AllowBots` because
/// their adapters embed mention-mode logic internally.
#[serde(default)]
pub allow_bot_messages: bool,
/// Bot IDs that bypass the bot filter even when allow_bot_messages is false.
#[serde(default)]
pub trusted_bot_ids: Vec<String>,
/// Enable streaming (typewriter) mode — requires gateway platform to support message editing.
#[serde(default)]
pub streaming: bool,
Expand Down
Loading
Loading