Function get_pinned_messages
Source pub async fn get_pinned_messages(
client: &Client,
token: &str,
channel_id: &str,
) -> Result<Value, Box<dyn Error>>
Expand description
Fetches pinned messages from 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 pinned messages from.
§Returns
A result containing the pinned messages as a JSON value.