pub async fn fetch_bans(&self, server_id: ServerId) -> Result<FetchBansResult> {
        Ok(self
            .client
            .get(ep!(self, "/servers/{}/bans" server_id))
            .send()
            .await?
            .error_for_status()?
            .json()
            .await?)
    }
/// Fetches all the users who are banned and the reasons associated with their bans if available
Fetches all the users who are banned and the reasons associated with their bans if available
Fetches all the users who are banned and the reasons associated with their bans if available
pub async fn fetch_bans(&self, server_id: ServerId) -> Result<FetchBansResult> {
        Ok(self
            .client
            .get(ep!(self, "/servers/{}/bans" server_id))
            .send()
            .await?
            .error_for_status()?
            .json()
            .await?)
    }
pub async fn fetch_bans ( & self , server_id : ServerId ) -> Result < FetchBansResult > { Ok ( self . client . get ( ep ! ( self " " server_id ) ) . send ( ) . await ? . error_for_status ( ) ? . json ( ) . await ? ) }
Fetches all the users who are banned and the reasons associated with their bans if available
Fetches all the users who are banned and the reasons associated with their bans if available
&self
server_id
ServerId
&self
server_id
ServerId