Function get_channel_messages

Source
pub async fn get_channel_messages(
    client: &Client,
    token: &str,
    channel_id: &str,
) -> Result<Value, Box<dyn Error>>
Expand description

Fetches 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 messages from.

§Returns

A result containing the channel messages as a JSON value.