Skip to main content

Module core

Module core 

Source
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. id is the opaque callback id the platform will echo back (Discord custom_id, Telegram callback_data, …).
RichItem
One rich item (renders as a Discord embed / Telegram HTML block / Matrix formatted message / Slack section).
SelectOption
A select-menu option (future filter chips; unused on text-only platforms).

Enums§

ActionRow
A row of interactive actions (buttons or a select menu).
ButtonStyle
Visual style hint for a Button.
PlatformMessage
Platform-neutral reply produced by every core command.

Functions§

pagination_row
Build the standard ⏮ ⬅ ➡ ⏭ pagination action row (platform-neutral).