Function remove_thread_member

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

Removes a member from a thread.

§Arguments

  • client - The HTTP client used to send the request.
  • token - The bot token for authentication.
  • channel_id - The ID of the thread.
  • user_id - The ID of the user to remove.

§Returns

A result indicating success or failure.