@conflict/beta
Advanced tools
Comparing version 0.7.1 to 0.7.2
export default function ActionRow ({ children }) { | ||
return ( | ||
<components_arr> | ||
<components_arr> {/** output an array of Discord message components */} | ||
<component type={1}> | ||
@@ -5,0 +5,0 @@ {children} |
import ActionRow from './ActionRow.js'; | ||
import Button from './Button.js'; | ||
/** | ||
* Unfinished | ||
*/ | ||
export default function EmbedSlideshow ({ embeds }) { | ||
@@ -5,0 +8,0 @@ let activeEmbed = embeds[0]; |
16
ep.js
@@ -17,3 +17,10 @@ #!/usr/bin/env node | ||
const vercel = process.env.VERCEL_ENV; | ||
(async () => { | ||
if (process.argv[0] == 'help' || process.argv.includes('-h') || process.argv.includes('--h') || process.argv.includes('-help') || process.argv.includes('--help')) { | ||
stump.info('Please view documentation at https://conflict.js.org/docs'); | ||
return; | ||
} | ||
if (process.argv[0] == 'dev') { | ||
@@ -23,2 +30,3 @@ await import(__dirname + '/devserver/index.js'); | ||
stump.info('Starting build...'); | ||
exec('npx babel bot --out-dir .conflict/build --config-file ' + path.join(__dirname, 'babel.config.js'), { cwd: process.cwd() }, (error, stdout, stderr) => { | ||
@@ -29,3 +37,9 @@ if (error) return stump.error(error); | ||
stderr.forEach(line => stump.warn(line)); | ||
stump.info(`Build completed with ${stderr.length} errors`); | ||
stump.success(`Build completed with ${stderr.length} errors`); | ||
if (vercel) { | ||
stump.info('Deploying to Vercel will disable events and only listen for commands'); | ||
const { finish } = await import('./vercel.js'); | ||
if (finish) await finish(); | ||
} | ||
}); | ||
@@ -32,0 +46,0 @@ } else { |
{ | ||
"name": "@conflict/beta", | ||
"version": "0.7.1", | ||
"version": "0.7.2", | ||
"description": "The first and only UI framework for Discord bots", | ||
@@ -32,2 +32,3 @@ "main": "exports.js", | ||
"discord-api-types": "^0.29.0", | ||
"discord-interactions": "^3.2.0", | ||
"discord.js": "^13.6.0", | ||
@@ -34,0 +35,0 @@ "esm-dirname": "^0.1.1", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 2 instances in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
74050
41
2007
6
18
4
+ Addeddiscord-interactions@^3.2.0
+ Addeddiscord-interactions@3.4.0(transitive)
+ Addedtweetnacl@1.0.3(transitive)