/// <summary> /// Edit details for a mod. /// </summary> public async Task <Mod?> Edit(EditMod editMod) { using (var content = editMod.ToContent()) { var(method, path) = Routes.EditMod(GameId, ModId); var req = new Request(method, path, content); var resp = await Connection.Send <EditResult <Mod> >(req); return(resp.Body !.Object); } }
/// <summary> /// Edit details for a mod. /// </summary> public async Task <Mod?> Edit(uint mod, EditMod editMod) { return(await this[mod].Edit(editMod)); }