Threads: add Slack/Discord thread sessions
This commit is contained in:
committed by
Peter Steinberger
parent
cb9f8146c4
commit
d4bba937a0
@@ -11,6 +11,11 @@ import {
|
|||||||
MessageReactionRemoveListener,
|
MessageReactionRemoveListener,
|
||||||
MessageType,
|
MessageType,
|
||||||
type RequestClient,
|
type RequestClient,
|
||||||
|
type PartialMessage,
|
||||||
|
type PartialMessageReaction,
|
||||||
|
Partials,
|
||||||
|
type ThreadChannel,
|
||||||
|
type PartialUser,
|
||||||
type User,
|
type User,
|
||||||
} from "@buape/carbon";
|
} from "@buape/carbon";
|
||||||
import { GatewayIntents, GatewayPlugin } from "@buape/carbon/gateway";
|
import { GatewayIntents, GatewayPlugin } from "@buape/carbon/gateway";
|
||||||
@@ -902,6 +907,7 @@ export function createDiscordMessageHandler(params: {
|
|||||||
: `group:${message.channelId}`,
|
: `group:${message.channelId}`,
|
||||||
To: discordTo,
|
To: discordTo,
|
||||||
SessionKey: threadKeys.sessionKey,
|
SessionKey: threadKeys.sessionKey,
|
||||||
|
SessionKey: threadKeys.sessionKey,
|
||||||
AccountId: route.accountId,
|
AccountId: route.accountId,
|
||||||
ChatType: isDirectMessage ? "direct" : "group",
|
ChatType: isDirectMessage ? "direct" : "group",
|
||||||
SenderName:
|
SenderName:
|
||||||
|
|||||||
Reference in New Issue
Block a user