Silver
Explore posts from serversSIASapphire - Imagine a framework
•Created by Silver on 8/21/2023 in #sapphire-support
Error: Module did not self-register
yeah, it's just when I have the source code compiled + run tests with vitest that it gives me that error 🤔
running with node works perfectly fine, thanks anyway tho
8 replies
SIASapphire - Imagine a framework
•Created by Silver on 8/21/2023 in #sapphire-support
Error: Module did not self-register
yep, it's a strange issue, it works just fine if I delete the
dist
directory (currently using this as workaround) and I'm on LTS v18.17.18 replies
SIASapphire - Imagine a framework
•Created by Silver on 8/21/2023 in #sapphire-support
Error: Module did not self-register
not sure if it's relevant but I'm using vitest and I'm on macOS (apple silicon)
I already tried reinstalling node_modules, still the same error
8 replies
SIASapphire - Imagine a framework
•Created by -Carlos👑 on 8/18/2023 in #sapphire-support
Preconditions
you've already explained how you'd do it so I don't really get what you're stuck on? 😅 you'd just iterate over the command's preconditions to check if any of them fail and if so, delete the message based on that
7 replies
SIASapphire - Imagine a framework
•Created by Silver on 6/26/2023 in #sapphire-support
How can I bypass required user permissions?
in case anyone is wondering how I implemented it in the future:
CustomPreconditionContainerSingle.ts
CustomCommand.ts
9 replies
SIASapphire - Imagine a framework
•Created by Silver on 6/26/2023 in #sapphire-support
How can I bypass required user permissions?
np, I'll extend the class and do it like that, thanks
9 replies
SIASapphire - Imagine a framework
•Created by Silver on 6/26/2023 in #sapphire-support
How can I bypass required user permissions?
that's for cooldowns 😄 I already have that set up actually
9 replies
SIASapphire - Imagine a framework
•Created by Silver on 6/24/2023 in #sapphire-support
I'm not receiving any Context Menu Command interactions
hm very weird, I tried to reproduce the issue in a new repository and now it's working for some reason
I'll mess around some more and get back to you
6 replies
SIASapphire - Imagine a framework
•Created by Silver on 6/24/2023 in #sapphire-support
I'm not receiving any Context Menu Command interactions
it doesn't, the only things I touched in the dashboard were the intents
slash commands work perfectly fine tho
edit: I added an interaction listener for debugging purposes and it looks like that's picking it up 😕
so that means it's not getting passed properly to
contextMenuRun
6 replies