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:
@@ -517,9 +517,7 @@ export async function monitorDiscordProvider(opts: MonitorDiscordOpts = {}) {
|
|||||||
From: isDirectMessage
|
From: isDirectMessage
|
||||||
? `discord:${message.author.id}`
|
? `discord:${message.author.id}`
|
||||||
: `group:${message.channelId}`,
|
: `group:${message.channelId}`,
|
||||||
To: isDirectMessage
|
To: `channel:${message.channelId}`,
|
||||||
? `user:${message.author.id}`
|
|
||||||
: `channel:${message.channelId}`,
|
|
||||||
ChatType: isDirectMessage ? "direct" : "group",
|
ChatType: isDirectMessage ? "direct" : "group",
|
||||||
SenderName: message.member?.displayName ?? message.author.tag,
|
SenderName: message.member?.displayName ?? message.author.tag,
|
||||||
SenderId: message.author.id,
|
SenderId: message.author.id,
|
||||||
|
|||||||
Reference in New Issue
Block a user