feat(discord): 添加代理支持配置

在 Discord 适配器中添加代理支持,包括配置模型、配置文件及实际代理实现。当配置了代理时,通过环境变量设置 HTTP/HTTPS 代理进行连接,以支持在需要代理的环境中使用 Discord 服务。
This commit is contained in:
2026-03-15 13:47:49 +08:00
parent 6407a4c30f
commit e103b1ad06
3 changed files with 42 additions and 1 deletions

View File

@@ -113,6 +113,8 @@ class DiscordModel(BaseModel):
"""
enabled: bool = False
token: str = ""
proxy: Optional[str] = None
proxy_type: str = "http"
class LoggingModel(BaseModel):