@songsid/agend 2.4.0-beta.37 → 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.
@@ -1 +1 @@
1
- {"format":1,"commit":"6c94a76e557e99ee3f01596ab4949bdecfb9a643","ref":"v2.4.0-beta.37","channel":"release","modified":false,"from":"git"}
1
+ {"format":1,"commit":"0db0124a217d84e34775960ebf11a873a8311157","ref":"v2.4.0-beta.38","channel":"release","modified":false,"from":"git"}
@@ -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
- const words = await this.showUpdateCard({ adapter, adapterId, chatId: data.channelId, respondButtons: data.respondButtons });
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;