azalea icon indicating copy to clipboard operation
azalea copied to clipboard

Whisper message is wrong

Open ozaner opened this issue 4 months ago • 1 comments

When printing a whisper chat message from some player to the client (via the message fn), it prints: You whisper to {player}: {message}

It should be: {player} whispers to you: {message}

For a minimal code example that displays this, just use the example from the README:

//...

#[derive(Default, Clone, Component)]
pub struct State {}

async fn handle(bot: Client, event: Event, state: State) -> anyhow::Result<()> {
    match event {
        Event::Chat(m) => {
            println!("{}", m.message().to_ansi());
        }
        _ => {}
    }

    Ok(())
}

ozaner avatar Oct 10 '24 10:10 ozaner