Skip to content

Commit

Permalink
Fix add_chat trying to get the server ID of a DM (Channel ID will be …
Browse files Browse the repository at this point in the history
…used instead)
  • Loading branch information
LobaDK committed May 16, 2024
1 parent 6070f3d commit f892594
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cogs/Chat.py
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ async def initiateChat(
database.AsyncSessionLocal,
schemas.Chat.Add(
user_id=ctx.author.id,
server_id=ctx.guild.id,
server_id=ctx.guild.id or ctx.channel.id,
user_message=user_message,
assistant_message=chat_response,
shared_chat=shared_chat,
Expand Down

0 comments on commit f892594

Please sign in to comment.