(argv: ArgumentsCamelCase<CommandArgs>)
| 31 | |
| 32 | |
| 33 | const handler = async (argv: ArgumentsCamelCase<CommandArgs>): Promise<void> => { |
| 34 | const command = await apiCommand(argv) |
| 35 | |
| 36 | const sceneId = await chooseScene(command, argv.id) |
| 37 | |
| 38 | const result = await command.client.scenes.execute(sceneId) |
| 39 | if (result.status === SuccessStatusValue.status) { |
| 40 | console.log('Scene executed successfully') |
| 41 | } else { |
| 42 | console.error(`Error "${result.status}" executing ${sceneId}.`) |
| 43 | } |
| 44 | } |
| 45 | |
| 46 | const cmd: CommandModule<object, CommandArgs> = { command, describe, builder, handler } |
| 47 | export default cmd |
nothing calls this directly
no test coverage detected