示例#1
0
        public async UniTask <GuildResp> UpdateGuildMemberRoleAsync(UpdateGuildMemberRoleReq request)
        {
            var result = await Client.SendRequestAsync <UpdateGuildMemberRoleReq, GuildResp>(DatabaseRequestTypes.RequestUpdateGuildMemberRole, request);

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

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