pub async fn add_webhook(&self, webhook: &str) -> crate::Result<()> {
        let webhooks = self.get_webhooks().await?;
        let mut webhooks: Vec<&str> = webhooks.iter().map(|s| &**s).collect();
        webhooks.push(webhook);
        self.set_webhooks(&webhooks).await
    }
/// Add an URL to webhooks list.
Add an URL to webhooks list.
Add an URL to webhooks list .
pub async fn add_webhook(&self, webhook: &str) -> crate::Result<()> {
        let webhooks = self.get_webhooks().await?;
        let mut webhooks: Vec<&str> = webhooks.iter().map(|s| &**s).collect();
        webhooks.push(webhook);
        self.set_webhooks(&webhooks).await
    }
pub async fn add_webhook ( & self , webhook : & str ) -> crate :: Result < ( ) > { let webhooks = self . get_webhooks ( ) . await ? ; let mut webhooks : Vec < & str > = webhooks . iter ( ) . map ( | s | & * * s ) . collect ( ) ; webhooks . push ( webhook ) ; self . set_webhooks ( & webhooks ) . await }
Add an URL to webhooks list.
Add an URL to webhooks list .
&self
webhook
&str
&self
webhook
&str