public async UniTask <AsyncResponseData <GuildResp> > UpdateGuildRoleAsync(UpdateGuildRoleReq request)
        {
            var resp = await Client.SendRequestAsync <UpdateGuildRoleReq, GuildResp>(DatabaseRequestTypes.RequestUpdateGuildRole, request);

            if (!resp.IsSuccess)
            {
                Logging.LogError(nameof(DatabaseNetworkManager), $"Cannot {nameof(UpdateGuildRoleAsync)} status: {resp.ResponseCode}");
            }
            return(resp);
        }
Exemplo n.º 2
0
        public async UniTask <GuildResp> UpdateGuildRoleAsync(UpdateGuildRoleReq request)
        {
            var result = await Client.SendRequestAsync <UpdateGuildRoleReq, GuildResp>(DatabaseRequestTypes.RequestUpdateGuildRole, request);

            if (result.ResponseCode != AckResponseCode.Success)
            {
                return(new GuildResp());
            }
            return(result.Response);
        }