UNPKG

@ably/cli

Version:

Ably CLI for Pub/Sub, Chat and Spaces

17 lines (16 loc) 846 B
import { Command } from "@oclif/core"; export default class MessagesReactionsIndex extends Command { static description = "Commands for working with message reactions in chat rooms"; static examples = [ '$ ably rooms messages reactions send my-room "message-id" "👍"', "$ ably rooms messages reactions subscribe my-room", '$ ably rooms messages reactions remove my-room "message-id" "👍"', ]; async run() { this.log("Use one of the message reactions subcommands:"); this.log(""); this.log(" ably rooms messages reactions send - Send a reaction to a message"); this.log(" ably rooms messages reactions subscribe - Subscribe to message reactions in a room"); this.log(" ably rooms messages reactions remove - Remove a reaction from a message"); } }