Function unpin_message

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

Unpins a message in a specified 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 unpin.

§Returns

A result indicating success or failure.