From 4a27deeb97d6fdc12813cca6e0054fe913f3c444 Mon Sep 17 00:00:00 2001 From: Phoenix Pereira <47909638+phoenixpereira@users.noreply.github.com> Date: Sun, 6 Oct 2024 18:28:21 +1030 Subject: [PATCH] fix: Chat Slash Command (#64) --- src/main.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main.py b/src/main.py index 049c5ed..0ddc646 100644 --- a/src/main.py +++ b/src/main.py @@ -136,7 +136,10 @@ async def chat(interaction: Interaction, query: str | None, file: Attachment | N await interaction.response.defer() query = "" if query == None else query bot_response = await client.gemini_model.query( - message=query, attachment=file, author=interaction.user.display_name + message=query, + attachment=file, + author=interaction.user.display_name, + author_id=interaction.user.id, ) await interaction.followup.send(embeds=bot_response)