Skip to content

Commit a45f0d7

Browse files
committed
Added JSDoc documentation in utilities
1 parent c97858d commit a45f0d7

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

ai-assistant/src/utils/handleCommandResponse.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,16 @@ import { IModify } from "@rocket.chat/apps-engine/definition/accessors";
22
import { IRoom } from "@rocket.chat/apps-engine/definition/rooms";
33
import { IUser } from "@rocket.chat/apps-engine/definition/users";
44

5+
/**
6+
* Handles the response of a command.
7+
*
8+
* @param args - The arguments passed to the command.
9+
* @param sender - The user who sent the command.
10+
* @param room - The room where the command was sent.
11+
* @param modify - The modify object used to interact with the Rocket.Chat API.
12+
* @param command - The command that was executed.
13+
* @returns A function that can be used to update the response message with a new message and optional image attachments.
14+
*/
515
export async function handleCommandResponse(
616
args: string,
717
sender: IUser,

0 commit comments

Comments
 (0)