Expand description
Platform-neutral message IR (intermediate representation).
Core commands return a PlatformMessage instead of a Discord CreateReply.
Each platform adapter (Discord today; Telegram/Matrix/Slack/IRC/Mastodon/Web/
CLI tomorrow) renders the IR natively. This is the seam that makes the bot
core protocol-agnostic: api.rs, cache.rs, store.rs, dispatch.rs never
import serenity/poise.
Structs§
- Button
- A button/action in an action row.
idis the opaque callback id the platform will echo back (Discord custom_id, Telegram callback_data, …). - Rich
Item - One rich item (renders as a Discord embed / Telegram HTML block / Matrix formatted message / Slack section).
- Select
Option - A select-menu option (future filter chips; unused on text-only platforms).
Enums§
- Action
Row - A row of interactive actions (buttons or a select menu).
- Button
Style - Visual style hint for a
Button. - Platform
Message - Platform-neutral reply produced by every core command.
Functions§
- pagination_
row - Build the standard
⏮ ⬅ ➡ ⏭pagination action row (platform-neutral).