@conflict/beta
Advanced tools
Comparing version 0.8.24 to 0.9.0
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", |
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
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
92411
47
2348
7
+ Addeddeep-equal@^2.2.0
+ Addedarray-buffer-byte-length@1.0.1(transitive)
+ Addedavailable-typed-arrays@1.0.7(transitive)
+ Addedcall-bind@1.0.7(transitive)
+ Addeddeep-equal@2.2.3(transitive)
+ Addeddefine-data-property@1.1.4(transitive)
+ Addeddefine-properties@1.2.1(transitive)
+ Addedes-define-property@1.0.0(transitive)
+ Addedes-errors@1.3.0(transitive)
+ Addedes-get-iterator@1.1.3(transitive)
+ Addedfor-each@0.3.3(transitive)
+ Addedfunction-bind@1.1.2(transitive)
+ Addedfunctions-have-names@1.2.3(transitive)
+ Addedget-intrinsic@1.2.4(transitive)
+ Addedgopd@1.0.1(transitive)
+ Addedhas-bigints@1.0.2(transitive)
+ Addedhas-property-descriptors@1.0.2(transitive)
+ Addedhas-proto@1.0.3(transitive)
+ Addedhas-symbols@1.0.3(transitive)
+ Addedhas-tostringtag@1.0.2(transitive)
+ Addedhasown@2.0.2(transitive)
+ Addedinternal-slot@1.0.7(transitive)
+ Addedis-arguments@1.1.1(transitive)
+ Addedis-array-buffer@3.0.4(transitive)
+ Addedis-bigint@1.0.4(transitive)
+ Addedis-boolean-object@1.1.2(transitive)
+ Addedis-callable@1.2.7(transitive)
+ Addedis-date-object@1.0.5(transitive)
+ Addedis-map@2.0.3(transitive)
+ Addedis-number-object@1.0.7(transitive)
+ Addedis-regex@1.1.4(transitive)
+ Addedis-set@2.0.3(transitive)
+ Addedis-shared-array-buffer@1.0.3(transitive)
+ Addedis-string@1.0.7(transitive)
+ Addedis-symbol@1.0.4(transitive)
+ Addedis-weakmap@2.0.2(transitive)
+ Addedis-weakset@2.0.3(transitive)
+ Addedisarray@2.0.5(transitive)
+ Addedobject-inspect@1.13.2(transitive)
+ Addedobject-is@1.1.6(transitive)
+ Addedobject-keys@1.1.1(transitive)
+ Addedobject.assign@4.1.5(transitive)
+ Addedpossible-typed-array-names@1.0.0(transitive)
+ Addedregexp.prototype.flags@1.5.2(transitive)
+ Addedset-function-length@1.2.2(transitive)
+ Addedset-function-name@2.0.2(transitive)
+ Addedside-channel@1.0.6(transitive)
+ Addedstop-iteration-iterator@1.0.0(transitive)
+ Addedwhich-boxed-primitive@1.0.2(transitive)
+ Addedwhich-collection@1.0.2(transitive)
+ Addedwhich-typed-array@1.1.15(transitive)