Like a prompt.
likePrompt(promptIdentifier: string): Promise<LikePromptResponse>| Name | Type | Description |
|---|---|---|
promptIdentifier* | string | The identifier of the prompt. Can be in the format:
|
// Like a prompt
const response = await client.likePrompt("owner/useful-prompt");
console.log(`Prompt now has ${response.likes} likes`);