Socket
Socket
Sign inDemoInstall

@conflict/beta

Package Overview
Dependencies
Maintainers
1
Versions
117
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@conflict/beta - npm Package Compare versions

Comparing version 0.8.4 to 0.8.5

2

package.json
{
"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;
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc