@conflict/beta
Advanced tools
Comparing version 0.8.4 to 0.8.5
{ | ||
"name": "@conflict/beta", | ||
"version": "0.8.4", | ||
"version": "0.8.5", | ||
"description": "The first and only UI framework for Discord bots", | ||
@@ -5,0 +5,0 @@ "main": "exports.js", |
@@ -9,3 +9,5 @@ // dispatch.js | ||
} = require("discord-interactions"); | ||
const Discord = require('discord.js'); | ||
const { | ||
@@ -22,3 +24,2 @@ AutocompleteInteraction, | ||
const commands = require('./commands.json'); | ||
@@ -46,2 +47,3 @@ | ||
const data = message; | ||
const client = generateClient(process.env.TOKEN); | ||
@@ -109,2 +111,10 @@ // lmaoooo stolen from https://github.com/discordjs/discord.js/blob/033151cf92fe43536b8a4c0f4d7d9ed75a2095c5/packages/discord.js/src/client/actions/InteractionCreate.js | ||
} | ||
} | ||
function generateClient (token) { | ||
const previousValue = JSON.parse(JSON.stringify(process.env.DISCORD_TOKEN)); | ||
process.env.DISCORD_TOKEN = token; | ||
const client = new Discord.Client(); | ||
process.env.DISCORD_TOKEN = previousValue; | ||
return client; | ||
} |
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 1 instance 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
83763
2187
28