pub async fn delete_comment(&self, comment_id: CommentId) -> Result<()> {
        let route = format!(
            "repos/{owner}/{repo}/issues/comments/{comment_id}",
            owner = self.owner,
            repo = self.repo,
            comment_id = comment_id
        );

        let response = self
            .crab
            ._delete(self.crab.absolute_url(route)?, None::<&()>)
            .await?;

        if response.status() == 204 {
            Ok(())
        } else {
            crate::map_github_error(response).await.map(drop)
        }
    }
/// Deletes a comment in an issue.
/// ```no_run
/// # async fn run() -> octocrab::Result<()> {
/// octocrab::instance().issues("owner", "repo").delete_comment(101u64.into()).await?;
/// # Ok(())
/// # }
/// ```
Deletes a comment in an issue.
Deletes a comment in an issue .
pub async fn delete_comment(&self, comment_id: CommentId) -> Result<()> {
        let route = format!(
            "repos/{owner}/{repo}/issues/comments/{comment_id}",
            owner = self.owner,
            repo = self.repo,
            comment_id = comment_id
        );
        let response = self
            .crab
            ._delete(self.crab.absolute_url(route)?, None::<&()>)
            .await?;
        if response.status() == 204 {
            Ok(())
        } else {
            crate::map_github_error(response).await.map(drop)
        }
    }
pub async fn delete_comment ( & self , comment_id : CommentId ) -> Result < ( ) > { let route = format ! ( " " owner self owner repo self repo comment_id comment_id ) ; let response = self . crab . _delete ( self . crab . absolute_url ( route ) ? , None :: < & ( ) > ) . await ? ; if response . status ( ) == 204 { Ok ( ( ) ) } else { crate :: map_github_error ( response ) . await . map ( drop ) } }
Deletes a comment in an issue.
Deletes a comment in an issue .
&self
comment_id
CommentId
&self
comment_id
CommentId
async fn run() -> octocrab::result<()> {
None
ok(())
None
}
None