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