fix(discord): Use channel ID for DMs instead of user ID (#261)

Co-authored-by: VAC <vac@vacs-mac-mini.localdomain>
This commit is contained in:
VACInc
2026-01-05 23:02:33 -05:00
committed by GitHub
parent 13eb9c9ee9
commit fb2513e265

View File

@@ -517,9 +517,7 @@ export async function monitorDiscordProvider(opts: MonitorDiscordOpts = {}) {
From: isDirectMessage
? `discord:${message.author.id}`
: `group:${message.channelId}`,
To: isDirectMessage
? `user:${message.author.id}`
: `channel:${message.channelId}`,
To: `channel:${message.channelId}`,
ChatType: isDirectMessage ? "direct" : "group",
SenderName: message.member?.displayName ?? message.author.tag,
SenderId: message.author.id,