Function get_guild_ban
Source pub async fn get_guild_ban(
client: &Client,
token: &str,
guild_id: &str,
user_id: &str,
) -> Result<Value, Box<dyn Error>>
Expand description
Fetches a specific ban in a Discord guild.
§Arguments
client
- The HTTP client used to send the request.
token
- The bot token for authentication.
guild_id
- The ID of the guild.
user_id
- The ID of the user to fetch the ban for.
§Returns
A result containing the ban information as a JSON value.