/// Ban the member from the server.
Ban the member from the server.
Ban the member from the server .
pub async fn ban(&self, cx: &Context, reason: Option<impl Into<String>>) -> Result {
        cx.http_client
            .put(
                format!("servers/{}/bans/{}", self.id.server_id, self.id.user_id),
                CreateBan::new(reason),
            )
            .await
    }
pub async fn ban ( & self , cx : & Context , reason : Option < impl Into < String > > ) -> Result { cx . http_client . put ( format ! ( " " self id server_id self id user_id ) , CreateBan :: new ( reason ) , ) . await }
Ban the member from the server.
Ban the member from the server .
&self
cx
&Context
reason
Option<impl Into<String>>