Skip to content

Commit

Permalink
Fix message setting
Browse files Browse the repository at this point in the history
  • Loading branch information
reitowo committed Dec 21, 2023
1 parent fafe1cb commit fbfe8c7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Api/MessageSettingApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
using MyBot.Api.Base;
using MyBot.Api.Raws;
using MyBot.Api.Types;
using MyBot.Models.MessageModels;
namespace MyBot.Api;

sealed partial class QQChannelApi {
Expand All @@ -27,7 +28,7 @@ public MessageSettingApi(ApiBase apiBase) {
/// </summary>
/// <param name="guildID">主频道ID</param>
/// <returns></returns>
public async ValueTask<MessageSettingApi> GetSetting(string guildID)
public async ValueTask<MessageSetting> GetSetting(string guildID)
{
RawGetMessageSettingInfoApi rawGetMessageSettingInfoApi;

Expand All @@ -38,6 +39,6 @@ public async ValueTask<MessageSettingApi> GetSetting(string guildID)

var requestData = await _apiBase.RequestAsync(processedInfo).ConfigureAwait(false);

return requestData.ToObject<MessageSettingApi>();
return requestData.ToObject<MessageSetting>();
}
}

0 comments on commit fbfe8c7

Please sign in to comment.