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.24 to 0.9.0

commandManager.js

11

bot.js

@@ -24,2 +24,3 @@ import Discord, {

import { getFile, cleanLines } from './utils.js'
import CommandManager, { setGlobalCommands } from './commandManager.js'

@@ -170,6 +171,10 @@ global.__ConflictFilePrefix = process.platform === 'win32' ? 'file://' : '';

if (!hotReload) setTimeout(async () => {
await rest.put(Routes.applicationCommands(client.user.id), { body: publicCommands });
}, 30000);
const manager = new CommandManager(client, stump);
await manager.setGlobalCommands(publicCommands);
// await setGlobalCommands(token, client.user.id, publicCommands);
// if (!hotReload) setTimeout(async () => {
// await rest.put(Routes.applicationCommands(client.user.id), { body: publicCommands });
// }, 30000);
if (!hotReload) for (const guild in guildCommands) {

@@ -176,0 +181,0 @@ const commandsForGuild = guildCommands[guild];

{
"name": "@conflict/beta",
"version": "0.8.24",
"version": "0.9.0",
"description": "The first and only UI framework for Discord bots",

@@ -31,2 +31,3 @@ "main": "exports.js",

"@discordjs/rest": "^0.3.0",
"deep-equal": "^2.2.0",
"discord-api-types": "^0.29.0",

@@ -33,0 +34,0 @@ "discord-interactions": "^3.2.0",

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