@photon-ai/flux 0.6.0 → 0.6.2

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/index.js CHANGED
@@ -52187,14 +52187,22 @@ var FluxClient = class {
52187
52187
  }
52188
52188
  async sendTapback(messageGuid, reaction) {
52189
52189
  if (!this.client) throw new Error("Not connected. Call connect() first.");
52190
- const result = await this.client.FluxService.sendTapback({
52191
- messageGuid,
52192
- reaction
52193
- });
52194
- if (!result.success) {
52195
- console.error(`[FLUX] Tapback failed: ${result.error}`);
52190
+ console.log(`[FLUX] Sending tapback: messageGuid=${messageGuid}, reaction=${reaction}`);
52191
+ try {
52192
+ const result = await this.client.FluxService.sendTapback({
52193
+ messageGuid,
52194
+ reaction
52195
+ });
52196
+ if (result.success) {
52197
+ console.log(`[FLUX] Tapback sent successfully!`);
52198
+ } else {
52199
+ console.error(`[FLUX] Tapback failed: ${result.error}`);
52200
+ }
52201
+ return result.success;
52202
+ } catch (error) {
52203
+ console.error(`[FLUX] Tapback error: ${error.message}`);
52204
+ return false;
52196
52205
  }
52197
- return result.success;
52198
52206
  }
52199
52207
  async disconnect() {
52200
52208
  if (!this.client) return;