show_history

Function show_history 

Source
pub async fn show_history(
    parts: &[&str],
    context: &CommandContext,
) -> Result<()>
Expand description

Displays the message history for a given peer.

Usage: history <peer_id_or_nickname> [message_count]

§Arguments

  • parts - A slice of strings representing the command arguments.
  • context - The CommandContext providing access to the application’s state and node.

§Errors

This function returns an error if retrieving the message history fails.