Skip to content

Commit

Permalink
Update doc
Browse files Browse the repository at this point in the history
  • Loading branch information
gehongyan committed Dec 3, 2024
1 parent 2524754 commit 7e913e2
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
2 changes: 2 additions & 0 deletions docs/quick_reference/startup/rest.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ _restClient = new KookRestClient(new KookRestConfig
DefaultRatelimitCallback = info => Task.CompletedTask,
// 日志级别
LogLevel = LogSeverity.Info,
// 是否打印初次启动日志
DisplayInitialLog = true,
// 双向文稿格式化用户名
FormatUsersInBidirectionalUnicode = true,
// Rest 客户端提供程序
Expand Down
14 changes: 10 additions & 4 deletions docs/quick_reference/startup/websocket.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ _socketClient = new KookSocketClient(new KookSocketConfig
{
// 包含 KookRestConfig 的全部配置项,此处略
// 显示指定网关地址
// 显式指定网关地址
GatewayHost = null,
// 连接超时(毫秒)
ConnectionTimeout = 6000,
Expand All @@ -37,18 +37,24 @@ _socketClient = new KookSocketClient(new KookSocketConfig
UdpSocketProvider = DefaultUdpSocketProvider.Instance,
// 启动缓存数据获取模式
StartupCacheFetchMode = StartupCacheFetchMode.Auto,
// 音频客户端被视为空闲的超时时间间隔(毫秒)
AudioClientIdleTimeout = 15000,
// 自动下载服务器用户信息
AlwaysDownloadUsers = false,
// 自动下载服务器用户语音状态信息
AlwaysDownloadVoiceStates = false,
// 自动下载服务器助力信息
AlwaysDownloadBoostSubscriptions = false,
// 等待服务器可用状态超时(毫秒)
MaxWaitBetweenGuildAvailablesBeforeReady = 10000,
// 最大获取新加入服务器信息重试次数
MaxJoinedGuildDataFetchingRetryTimes = 10,
// 获取新加入服务器信息重试延迟(毫秒)
JoinedGuildDataFetchingRetryDelay = 500
JoinedGuildDataFetchingRetryDelay = 500,
// 服务器更新时是否主动通过 API 更新服务器角色排序
AutoUpdateRolePositions = false,
// 频道排序事件是否主动通过 API 更新服务器频道
AutoUpdateChannelPositions = false,
// 消息队列提供程序
MessageQueueProvider = SynchronousImmediateMessageQueueProvider.Instance
});

// Token
Expand Down

0 comments on commit 7e913e2

Please sign in to comment.