@conflict/beta
Advanced tools
Comparing version 0.9.26 to 0.9.27
@@ -142,2 +142,7 @@ import View, { Component } from './view.js' | ||
if (this.vercelConfig?.isVercel) { | ||
return this.interaction.client.api.interactions(this.interaction.id, this.interaction.token).callback.post({ data: { | ||
type: 4, | ||
data: options[0], | ||
...(options[0]?.ephemeral ? { flags: 1 << 6 } : {}) | ||
}}); | ||
return this.vercelConfig?.onReply?.({ | ||
@@ -194,3 +199,3 @@ type: 4, | ||
if (!(view instanceof View)) view = new View(view); | ||
if (this.vercelConfig?.isVercel && false) { | ||
if (this.vercelConfig?.isVercel) { | ||
view.applyTo({ reply: (...args) => { | ||
@@ -197,0 +202,0 @@ this.vercelConfig?.onReply?.(...args); |
{ | ||
"name": "@conflict/beta", | ||
"version": "0.9.26", | ||
"version": "0.9.27", | ||
"description": "The first and only UI framework for Discord bots", | ||
@@ -5,0 +5,0 @@ "main": "exports.js", |
92056
2344