Exemple #1
0
        public async UniTask <GuildResp> UpdateGuildMessageAsync(UpdateGuildMessageReq request)
        {
            var result = await Client.SendRequestAsync <UpdateGuildMessageReq, GuildResp>(DatabaseRequestTypes.RequestUpdateGuildMessage, request);

            if (result.ResponseCode != AckResponseCode.Success)
            {
                return(new GuildResp());
            }
            return(result.Response);
        }
        public async UniTask <AsyncResponseData <GuildResp> > UpdateGuildMessage2Async(UpdateGuildMessageReq request)
        {
            var resp = await Client.SendRequestAsync <UpdateGuildMessageReq, GuildResp>(DatabaseRequestTypes.RequestUpdateGuildMessage2, request);

            if (!resp.IsSuccess)
            {
                Logging.LogError(nameof(DatabaseNetworkManager), $"Cannot {nameof(UpdateGuildMessage2Async)} status: {resp.ResponseCode}");
            }
            return(resp);
        }