mzrs-sdk 0.1.15

High-level Rust SDK for Mezon platform
Documentation

High-level Rust SDK for the Mezon platform.

This crate wraps [mzrs_core] with ergonomic APIs:

  • [MzrsClient] + [MzrsClientBuilder] -- connect, authenticate, and interact with Mezon.
  • [ClanHandle] / [ChannelHandle] -- scoped handles that carry context so you don't repeat IDs.
  • [MessageBuilder] -- fluent message builder with .send().await.
  • [RichText] -- text with bold, italic, code, links, mentions.
  • [Embed] -- rich cards with fields, images, and footers.
  • [ActionRow] -- interactive buttons and selects.
  • [content] -- parse incoming messages (text, mentions, attachments).

Quick start

use mzrs_sdk::MzrsClient;

let client = MzrsClient::builder()
    .bot_id("my-bot")
    .token("secret")
    .build()?;

client.login().await?;
client.connect().await?;

let channel = client.channel("clan_id", "channel_id");
channel.send_text("Hello from mzrs-sdk!").await?;