feat(discord): add group policy to control group respond behaviour

This commit is contained in:
Joel Chan
2026-02-12 17:10:50 +08:00
parent a5962170f6
commit e9d023f52c
3 changed files with 43 additions and 2 deletions

View File

@@ -62,6 +62,7 @@ class DiscordConfig(Base):
allow_from: list[str] = Field(default_factory=list) # Allowed user IDs
gateway_url: str = "wss://gateway.discord.gg/?v=10&encoding=json"
intents: int = 37377 # GUILDS + GUILD_MESSAGES + DIRECT_MESSAGES + MESSAGE_CONTENT
group_policy: str = "open" # "mention" or "open"
class MatrixConfig(Base):