Skip to content

Commit

Permalink
patch(ai): use correct response field in /chat command
Browse files Browse the repository at this point in the history
  • Loading branch information
Pkmmte committed Jun 18, 2024
1 parent 1520b9f commit 15fb940
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/stupid-wasps-play.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@robojs/ai': patch
---

patch: use correct response field in /chat command
7 changes: 6 additions & 1 deletion packages/plugin-ai/src/commands/chat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,10 @@ export default async (interaction: ChatInputCommandInteraction) => {
showTyping: false
})

return reply
return {
components: reply.components,
content: reply.text,
embeds: reply.embeds,
files: reply.files
}
}

0 comments on commit 15fb940

Please sign in to comment.