MAJOR: Full rewrite of slash cmd loading system

The system of detecting, comparing & registering slash cmds has been rewritten and updated for future compatibility. This will break all current plugins (so please wait until they are updated)

=> Increased speed
=> All cmd params are now used when comparing
=> Future compability & removed deprecated functions
=> New universal utility interfaces for slash commands
=> And more!
This commit is contained in:
DJj123dj
2025-01-18 20:40:52 +01:00
parent 3a30152cb2
commit 03982f644e
3 changed files with 427 additions and 145 deletions
+3
View File
@@ -83,6 +83,8 @@ export interface ODDefaults {
slashCommandRegistering:boolean,
/**When enabled, the bot is forced to re-register all slash commands in the server. This can be used in case of a auto-update malfunction. */
forceSlashCommandRegistration:boolean,
/**When enabled, the bot is allowed to unregister all slash commands which aren't used in Open Ticket. Disable this if you don't want to use the Open Ticket `ODSlashCommand` classes. */
allowSlashCommandRemoval:boolean,
/**Load the default open ticket text commands. */
textCommandLoading:boolean,
@@ -265,6 +267,7 @@ export class ODDefaultsManager {
slashCommandLoading:true,
slashCommandRegistering:true,
forceSlashCommandRegistration:false,
allowSlashCommandRemoval:true,
textCommandLoading:true,
questionLoading:true,