@conflict/beta
Advanced tools
Comparing version 0.9.29 to 0.9.30
@@ -186,3 +186,3 @@ import View, { Component } from './view.js' | ||
if (!(view instanceof View)) view = new View(view); | ||
if (this.vercelConfig?.isVercel) { | ||
if (this.vercelConfig?.isVercel && false) { | ||
view.applyTo({ reply: (...args) => { | ||
@@ -189,0 +189,0 @@ this.vercelConfig?.onReply?.(...args); |
{ | ||
"name": "@conflict/beta", | ||
"version": "0.9.29", | ||
"version": "0.9.30", | ||
"description": "The first and only UI framework for Discord bots", | ||
@@ -5,0 +5,0 @@ "main": "exports.js", |
@@ -101,7 +101,5 @@ // dispatch.js | ||
const vercelOutput = await new Promise(async (resolve, reject) => { | ||
let resolved = false; | ||
console.log({interaction}) | ||
if (interaction.isCommand()) { | ||
@@ -155,5 +153,5 @@ if (commands[interaction.commandName]) { | ||
} | ||
if (!resolved) resolve(false); | ||
}); | ||
console.log('reached end') | ||
// console.log(JSON.stringify({ vercelOutput }), null, 4); | ||
@@ -160,0 +158,0 @@ // return status(200, vercelOutput); |
@@ -123,5 +123,6 @@ import Discord from 'discord.js'; | ||
this.applyTo = async function (channel, options, isInteraction, isVercel) { | ||
if (isVercel) { | ||
if (isVercel && false) { | ||
channel.reply(parsed, options); | ||
} | ||
console.log(this, options); | ||
let output = isInteraction ? channel.reply(this, options, ...attachments) : channel.send(this, ...attachments); | ||
@@ -128,0 +129,0 @@ if (output instanceof Promise) output = await output; |
91322
2326