azalea
azalea copied to clipboard
Whisper message is wrong
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(())
}