feat(discord): 添加代理支持配置
在 Discord 适配器中添加代理支持,包括配置模型、配置文件及实际代理实现。当配置了代理时,通过环境变量设置 HTTP/HTTPS 代理进行连接,以支持在需要代理的环境中使用 Discord 服务。
This commit is contained in:
@@ -113,6 +113,8 @@ class DiscordModel(BaseModel):
|
||||
"""
|
||||
enabled: bool = False
|
||||
token: str = ""
|
||||
proxy: Optional[str] = None
|
||||
proxy_type: str = "http"
|
||||
|
||||
|
||||
class LoggingModel(BaseModel):
|
||||
|
||||
Reference in New Issue
Block a user