Function get_guild
Source pub async fn get_guild(
client: &Client,
token: &str,
guild_id: &str,
) -> Result<Value, Box<dyn Error>>
Expand description
Fetches information about 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 to fetch information for.
§Returns
A result containing the guild information as a JSON value.