Function bulk_delete_messages

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

Bulk deletes messages 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 messages are located.
  • message_ids - A list of message IDs to delete.

§Returns

A result indicating success or failure.