@songsid/agend 2.4.0-beta.36 → 2.4.0-beta.38
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/dist/build-provenance.json +1 -1
- package/dist/fleet-manager.js +7 -1
- package/dist/fleet-manager.js.map +1 -1
- package/dist/hub/directory/directory.d.ts +18 -0
- package/dist/hub/directory/directory.js +131 -25
- package/dist/hub/directory/directory.js.map +1 -1
- package/dist/hub/runtime.js +15 -2
- package/dist/hub/runtime.js.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"format":1,"commit":"
|
|
1
|
+
{"format":1,"commit":"0db0124a217d84e34775960ebf11a873a8311157","ref":"v2.4.0-beta.38","channel":"release","modified":false,"from":"git"}
|
package/dist/fleet-manager.js
CHANGED
|
@@ -11154,7 +11154,13 @@ export class FleetManager {
|
|
|
11154
11154
|
// M-3967: the card with its buttons, as the slash's own public reply; anything else in words.
|
|
11155
11155
|
const adapter = this.adapters.get(adapterId) ?? this.adapter;
|
|
11156
11156
|
if (adapter && data.respondButtons) {
|
|
11157
|
-
|
|
11157
|
+
// M-4000: where the card is, as a press on it reports it. A Discord button in a guild channel (or a thread) comes
|
|
11158
|
+
// back as the configured guild (chatId) and the channel (threadId) — the place a text /update and General's own
|
|
11159
|
+
// card use, and the one /update now's progress uses below. Recording the bare channel as chatId refused every press.
|
|
11160
|
+
const place = data.guildId
|
|
11161
|
+
? { chatId: String(this.getChannelConfig(adapterId)?.group_id ?? data.guildId), threadId: data.channelId }
|
|
11162
|
+
: { chatId: data.channelId };
|
|
11163
|
+
const words = await this.showUpdateCard({ adapter, adapterId, ...place, respondButtons: data.respondButtons });
|
|
11158
11164
|
if (words !== null)
|
|
11159
11165
|
await data.respond(words);
|
|
11160
11166
|
return;
|