The precondition "SubcommandCooldown" is not available.
Hi, I have cooldowns configured on a subcommand like so, but running the command gives the title error.
Solution:Jump to solution
You need to register the plugin somewhere with
import('@sapphire/plugin-subccommands/register')
(mentioned in the readme)...14 Replies
Solution
You need to register the plugin somewhere with
import('@sapphire/plugin-subccommands/register')
(mentioned in the readme)Oh whoops
Thanks!
So I'm importing it now but still getting the error
move it to the top and make sure to rebuild TS code
Or put the registers in your setup file
oh so I actually already had it being imported in my setup file
hold on
I see why
ahahahah
how has no one reported this before
ill make a fix
awesome thanks!
GitHub
fix(plugins): fixed name for plugin subcommnad cooldown preconditio...
So technically this would be a breaking change due to the rename in the constant at top level but since it never really worked before I'd say we can push it as a semver:patch.
Reported in https...
I partially blame myself and partially @kyra 🩵🩷🤍🩷🩵 coz I'm like 99% sure I wrote
SubcommandCooldown
before and somewhere along the line either through review or with virtual pieces it was renamed xD
@Ravelt can you install @sapphire/plugin-subcommands@pr-531
and validate that it's fixed?
yup looks good
nice
released update #Announcements @Ravelt
Great thanks for the quick turnaround