diff --git a/README.md b/README.md index 6d06df473..ca41615d5 100644 --- a/README.md +++ b/README.md @@ -150,6 +150,10 @@ See [MCP Server section](#mcp-server) for more details on how to use the MCP Ser * [`ably rooms list`](#ably-rooms-list) * [`ably rooms messages`](#ably-rooms-messages) * [`ably rooms messages get ROOMID`](#ably-rooms-messages-get-roomid) +* [`ably rooms messages reactions`](#ably-rooms-messages-reactions) +* [`ably rooms messages reactions add ROOMID MESSAGESERIAL REACTION`](#ably-rooms-messages-reactions-add-roomid-messageserial-reaction) +* [`ably rooms messages reactions remove ROOMID MESSAGESERIAL REACTION`](#ably-rooms-messages-reactions-remove-roomid-messageserial-reaction) +* [`ably rooms messages reactions subscribe ROOMID`](#ably-rooms-messages-reactions-subscribe-roomid) * [`ably rooms messages send ROOMID TEXT`](#ably-rooms-messages-send-roomid-text) * [`ably rooms messages subscribe ROOMID`](#ably-rooms-messages-subscribe-roomid) * [`ably rooms occupancy`](#ably-rooms-occupancy) @@ -3507,6 +3511,8 @@ EXAMPLES $ ably rooms messages subscribe my-room $ ably rooms messages get my-room + + $ ably rooms messages reactions add my-room "message-id" "👍" ``` _See code: [src/commands/rooms/messages/index.ts](https://github.com/ably/cli/blob/v0.5.1/src/commands/rooms/messages/index.ts)_ @@ -3558,6 +3564,161 @@ EXAMPLES _See code: [src/commands/rooms/messages/get.ts](https://github.com/ably/cli/blob/v0.5.1/src/commands/rooms/messages/get.ts)_ +## `ably rooms messages reactions` + +Commands for working with message reactions in chat rooms + +``` +USAGE + $ ably rooms messages reactions + +DESCRIPTION + Commands for working with message reactions in chat rooms + +EXAMPLES + $ ably rooms messages reactions add my-room "message-id" "👍" + + $ ably rooms messages reactions subscribe my-room + + $ ably rooms messages reactions remove my-room "message-id" "👍" +``` + +_See code: [src/commands/rooms/messages/reactions/index.ts](https://github.com/ably/cli/blob/v0.5.1/src/commands/rooms/messages/reactions/index.ts)_ + +## `ably rooms messages reactions add ROOMID MESSAGESERIAL REACTION` + +Add a reaction to a message in a chat room + +``` +USAGE + $ ably rooms messages reactions add ROOMID MESSAGESERIAL REACTION [--access-token ] [--api-key ] [--client-id + ] [--control-host ] [--env ] [--host ] [--json | --pretty-json] [--token ] [-v] + [--count --type unique|distinct|multiple] + +ARGUMENTS + ROOMID The room ID where the message is located + MESSAGESERIAL The serial ID of the message to react to + REACTION The reaction to add (e.g. 👍, ❤️, 😂) + +FLAGS + -v, --verbose Output verbose logs + --access-token= Overrides any configured access token used for the Control API + --api-key= Overrides any configured API key used for the product APIs + --client-id= Overrides any default client ID when using API authentication. Use "none" to explicitly + set no client ID. Not applicable when using token authentication. + --control-host= Override the host endpoint for the control API, which defaults to control.ably.net + --count= Count value for Multiple type reactions + --env= Override the environment for all product API calls + --host= Override the host endpoint for all product API calls + --json Output in JSON format + --pretty-json Output in colorized JSON format + --token= Authenticate using an Ably Token or JWT Token instead of an API key + --type=