/// <summary> /// Remove an image from the subreddit's custom image set asynchronously. /// The image will no longer count against the subreddit's image limit. However, the actual image data may still be accessible for an unspecified amount of time. /// If the image is currently referenced by the subreddit's stylesheet, that stylesheet will no longer validate and won't be editable until the image reference is removed. /// See also: /api/upload_sr_img. /// </summary> /// <param name="subredditsDeleteSrImgInput">A valid SubredditsDeleteSrImgInput instance</param> /// <param name="subreddit">The subreddit being queried</param> /// <returns>An object indicating any errors.</returns> public async Task <GenericContainer> DeleteSrImgAsync(SubredditsDeleteSrImgInput subredditsDeleteSrImgInput, string subreddit = null) { return(await SendRequestAsync <GenericContainer>(Sr(subreddit) + "api/delete_sr_img", subredditsDeleteSrImgInput, Method.POST)); }
/// <summary> /// Remove an image from the subreddit's custom image set. /// The image will no longer count against the subreddit's image limit. However, the actual image data may still be accessible for an unspecified amount of time. /// If the image is currently referenced by the subreddit's stylesheet, that stylesheet will no longer validate and won't be editable until the image reference is removed. /// See also: /api/upload_sr_img. /// </summary> /// <param name="subredditsDeleteSrImgInput">A valid SubredditsDeleteSrImgInput instance</param> /// <param name="subreddit">The subreddit being queried</param> /// <returns>An object indicating any errors.</returns> public GenericContainer DeleteSrImg(SubredditsDeleteSrImgInput subredditsDeleteSrImgInput, string subreddit = null) { return(SendRequest <GenericContainer>(Sr(subreddit) + "api/delete_sr_img", subredditsDeleteSrImgInput, Method.POST)); }