CommandsClientExtension extension
- on
Methods
-
addCommand(
String command, FutureOr< String?> callback(CommandArgs)) → void -
Available on Client, provided by the CommandsClientExtension extension
Add a command to the command handler.commandis its name, andcallbackis the callback to invoke -
parseAndRunCommand(
Room room, String msg, {Event? inReplyTo, String? editEventId, String? txid, String? threadRootEventId, String? threadLastEventId}) → Future< String?> -
Available on Client, provided by the CommandsClientExtension extension
Parse and execute a string,msgis the input. OptionallyinReplyTois the event being replied to andeditEventIdis the eventId of the event being replied to -
registerDefaultCommands(
) → void -
Available on Client, provided by the CommandsClientExtension extension
Register all default commands -
unregisterAllCommands(
) → void -
Available on Client, provided by the CommandsClientExtension extension
Unregister all commands