2.7 KiB
Available Chat Commands
The Matrix Dart SDK supports out of the box chat commands. Just use Room.sendTextEvent("/command");. If you do not desire to get chat commands parsed, you can disable them like this: Room.sendTextEvent("/command", parseCommands: false);
Available Commands:
Available Chat Commands
The Matrix Dart SDK supports out of the box chat commands. Just use Room.sendTextEvent("/command");. If you do not desire to get chat commands parsed, you can disable them like this: Room.sendTextEvent("/command", parseCommands: false);
Available Commands:
/send <message>
Sends a plain message to the current room (commands are not parsed).
/me <action>
Sends an emote message (e.g., /me is happy will display as "YourName is happy").
/dm <mxid> [--no-encryption]
Starts a direct chat with the given user. Optionally disables encryption.
/create [<group name>] [--no-encryption]
Creates a new group chat with the given name. Optionally disables encryption.
/plain <message>
Sends a plain text message (no markdown, no commands) to the current room.
/html <html>
Sends a message as raw HTML to the current room.
/react <emoji>
Reacts to the message you are replying to with the given emoji.
/join <room>
Joins the specified room.
/leave
Leaves the current room.
/op <mxid> [<power level>]
Sets the power level of a user in the current room (default: 50).
/kick <mxid>
Kicks a user from the current room.
/ban <mxid>
Bans a user from the current room.
/unban <mxid>
Unbans a user in the current room.
/invite <mxid>
Invites a user to the current room.
/myroomnick <displayname>
Sets your display name in the current room.
/myroomavatar <mxc-url>
Sets your avatar in the current room.
/discardsession
Discards the outbound group session for the current room (forces new encryption session).
/clearcache
Clears the local cache.
/markasdm <mxid>
Marks the current room as a direct chat with the given user.
/markasgroup
Removes the direct chat status from the current room.
/hug
Sends a "hug" event to the current room.
/googly
Sends a "googly eyes" event to the current room.
/cuddle
Sends a "cuddle" event to the current room.
/sendRaw <json>
Sends a raw event (as JSON) to the current room.
/ignore <mxid>
Ignores the given user (you will not see their messages).
/unignore <mxid>
Stops ignoring the given user.
/roomupgrade <version>
Upgrades the current room to a new version.
/logout
Logs out the current session.
/logoutAll
Logs out all sessions for the user.