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

This commit is contained in:
Joel Chan committed 2026-03-02 12:16:49 +08:00
1 parent a5962170f6
commit e9d023f52c
3 files changed
+43 -2

No files matched your search

+1
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):