pub async fn edit_message(
client: &Client,
token: &str,
channel_id: &str,
message_id: &str,
new_content: &str,
) -> Result<(), Box<dyn Error>>Expand description
Edits 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 edit.new_content- The new content of the message.
§Returns
A result indicating success or failure.