Skip to main content

Module plugin

Module plugin 

Source

Modules§

help
stats

Structs§

ChatWriter
Short-lived scoped handle for a plugin to write messages to the chat.
CommandContext
Context passed to a plugin’s handle method.
CommandInfo
Describes a single command for /help and autocomplete.
HistoryReader
Scoped read-only handle to a room’s chat history.
ParamSchema
Schema for a single command parameter — drives validation, /help output, and TUI argument autocomplete.
PluginRegistry
Central registry of plugins. The broker uses this to dispatch / commands.
RoomMetadata
Frozen snapshot of room state for plugin consumption.
UserInfo
A user’s online presence.

Enums§

ParamType
The kind of value a parameter accepts.
PluginResult
What the broker should do after a plugin handles a command.

Traits§

Plugin
A plugin that handles one or more / commands.

Functions§

all_known_commands
Returns command schemas for all known commands: built-ins + default plugins.
builtin_command_infos
Returns CommandInfo schemas for all built-in commands (those handled directly by the broker, not by plugins). Used by the TUI palette and /help to show a complete command list with typed parameter metadata.

Type Aliases§

BoxFuture
Boxed future type used by Plugin::handle for dyn compatibility.