Exemplo n.º 1
0
		public Task<EditServerResponse> EditServer(string serverId, string name = null, string region = null)
		{
			if (serverId == null) throw new ArgumentNullException(nameof(serverId));

			var request = new EditServerRequest { Name = name, Region = region };
			return _rest.Patch<EditServerResponse>(Endpoints.Server(serverId), request);
		}
Exemplo n.º 2
0
		public Task<EditServerResponse> EditServer(string serverId, string name = null, string region = null, ImageType iconType = ImageType.Png, byte[] icon = null)
		{
			if (serverId == null) throw new ArgumentNullException(nameof(serverId));

			var request = new EditServerRequest { Name = name, Region = region, Icon = Base64Picture(iconType, icon) };
			return _rest.Patch<EditServerResponse>(Endpoints.Server(serverId), request);
		}