@crewhaus/channel-adapter-discord 0.1.2 → 0.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -2
- package/src/index.ts +6 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@crewhaus/channel-adapter-discord",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.4",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Discord channel adapter: Ed25519 signature verification + slash-command/button/modal interaction parsing + interaction-response API (Section 33)",
|
|
6
6
|
"main": "src/index.ts",
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"test": "bun test src"
|
|
13
13
|
},
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"@crewhaus/errors": "0.1.
|
|
15
|
+
"@crewhaus/errors": "0.1.4"
|
|
16
16
|
},
|
|
17
17
|
"license": "Apache-2.0",
|
|
18
18
|
"author": {
|
package/src/index.ts
CHANGED
|
@@ -195,6 +195,12 @@ export function createDiscordAdapter(
|
|
|
195
195
|
}
|
|
196
196
|
},
|
|
197
197
|
|
|
198
|
+
// Note: no `react()` hook. Discord's inbound is an *interaction* (slash
|
|
199
|
+
// command / component / modal), not a channel message, and `event.ts` is
|
|
200
|
+
// the interaction id — there is no user message to attach a reaction to.
|
|
201
|
+
// The session-router skips the (undefined) react hook silently, so status
|
|
202
|
+
// acks simply don't appear on Discord. (Slack/Telegram/WhatsApp implement
|
|
203
|
+
// react(); iMessage cannot.)
|
|
198
204
|
async setTyping(args: { event: InboundEvent }): Promise<void> {
|
|
199
205
|
const url = `${apiBaseUrl}/channels/${args.event.channelId}/typing`;
|
|
200
206
|
// Best-effort — do not surface failures. A failed typing indicator must
|