diff --git a/samples/Kook.Net.Samples.SimpleBot/Program.cs b/samples/Kook.Net.Samples.SimpleBot/Program.cs index 8bd149d0..33aa2233 100644 --- a/samples/Kook.Net.Samples.SimpleBot/Program.cs +++ b/samples/Kook.Net.Samples.SimpleBot/Program.cs @@ -19,7 +19,7 @@ MessageCacheSize = 100, LogLevel = LogSeverity.Debug, AutoUpdateChannelPositions = true, - AutoUpdateGuildRoles = true + AutoUpdateRolePositions = true }; // 在使用完 Kook.Net 的客户端后,建议在应用程序的生命周期结束时进行 Dispose 操作 diff --git a/src/Kook.Net.WebSocket/KookSocketClient.Messages.cs b/src/Kook.Net.WebSocket/KookSocketClient.Messages.cs index 16105aed..fed8048a 100644 --- a/src/Kook.Net.WebSocket/KookSocketClient.Messages.cs +++ b/src/Kook.Net.WebSocket/KookSocketClient.Messages.cs @@ -955,7 +955,7 @@ await UnknownGuildAsync(gatewayEvent.ExtraData.Type, gatewayEvent.TargetId, gate || before.BufferBoostSubscriptionCount != guild.BufferBoostSubscriptionCount)) await guild.DownloadBoostSubscriptionsAsync().ConfigureAwait(false); - if (BaseConfig.AutoUpdateGuildRoles) + if (BaseConfig.AutoUpdateRolePositions) { IEnumerable models = await ApiClient.GetGuildRolesAsync(guild.Id) .FlattenAsync() diff --git a/src/Kook.Net.WebSocket/KookSocketConfig.cs b/src/Kook.Net.WebSocket/KookSocketConfig.cs index 854267de..e0b0e145 100644 --- a/src/Kook.Net.WebSocket/KookSocketConfig.cs +++ b/src/Kook.Net.WebSocket/KookSocketConfig.cs @@ -171,7 +171,7 @@ public int JoinedGuildDataFetchingRetryDelay /// /// Gets or sets whether to update guild role positions via API when fires. /// - public bool AutoUpdateGuildRoles { get; set; } = false; + public bool AutoUpdateRolePositions { get; set; } = false; /// /// Gets or sets whether to update guild channels via API when gateway publishes sort_channel events.