Function send_message
Source pub async fn send_message(
client: &Client,
token: &str,
channel_id: &str,
content: &str,
) -> Result<(), Box<dyn Error>>
Expand description
Sends a message to 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 to send the message to.
content - The content of the message.
§Returns
A result indicating success or failure.