Function get_channel_message

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

Fetches a single message 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 where the message is located.
  • message_id - The ID of the message to fetch.

§Returns

A result containing the message information as a JSON value.