Type 'DeveloperOnly' is not assignable to type 'PreconditionEntryResolvable'.

Type '"DeveloperOnly"' is not assignable to type 'PreconditionEntryResolvable'.
Type '"DeveloperOnly"' is not assignable to type 'PreconditionEntryResolvable'.
in src/commands/eval.ts. With a precondition file at src/preconditions/DeveloperOnly.ts with the content https://hst.sh/ufunolenip.typescript . index.d.ts exists with the following content https://hst.sh/gikuhixani.typescript . Eval starts with the content https://hst.sh/sagivaqahe.typescript . Version @sapphire/framework@pr-512
Solution:
may it be at fault of the PR you're using? think
Jump to solution
20 Replies
bitomic
bitomic2y ago
You aren't passing the precondition in your eval command, are you?
net-tech-
net-tech-2y ago
temporarily removed it, added it back
Type '"DeveloperOnly"' is not assignable to type 'PreconditionEntryResolvable'.

18 preconditions: ["DeveloperOnly"]
Type '"DeveloperOnly"' is not assignable to type 'PreconditionEntryResolvable'.

18 preconditions: ["DeveloperOnly"]
, still happens a more pressing issue is the bot is receving message events but sapphire is not executing the command, precondition or not, and yes i added, loadMessageCommandListeners
bitomic
bitomic2y ago
and your bot has the message content intent?
bitomic
bitomic2y ago
Spinel
Spinel2y ago
<:_:746069730170896405> Sapphire guide results: Preconditions / Creating your own preconditions
bitomic
bitomic2y ago
i don't remember it, lemme check
net-tech-
net-tech-2y ago
yep and yes i read the guide 3 times
Solution
bitomic
bitomic2y ago
may it be at fault of the PR you're using? think
net-tech-
net-tech-2y ago
god i hope not
Spinel
Spinel2y ago
<:_:947257590319042610> #512 in sapphiredev/framework by vladfrangu opened <t:1661288348:R> feat(deps): support for djs v14
net-tech-
net-tech-2y ago
i need v14 3 months for v14 support aah
bitomic
bitomic2y ago
hasn't been updated in a long time, and the PR itself advises against using it what do you need specifically from v14, if you don't mind me asking?
net-tech-
net-tech-2y ago
automod, forums
bitomic
bitomic2y ago
aren't forums in v13? what i haven't tried it but i remember it was added
net-tech-
net-tech-2y ago
backport pending either way, do i put this in the PR
bitomic
bitomic2y ago
i think it's worth mentioning it, because i can't see anything else wrong
net-tech-
net-tech-2y ago
Done
Favna
Favna2y ago
@net-tech- I just looked at this issue again because Im working on the v14 PRs and I cannot reproduce it with the latest versions of all the relevant packages. which you can see here: https://github.com/favna/musical-giggle/blob/feat/djs-v14/package.json#L8-L23
net-tech-
net-tech-2y ago
one moment let me check my package json Yeah im not even close:
"dependencies": {
"@sapphire/framework": "^3.2.0-pr-512.244de39.0",
"@sapphire/plugin-editable-commands": "^2.0.1",
"@sapphire/plugin-i18next": "^4.0.1",
"@sapphire/plugin-logger": "^3.0.1",
"@sapphire/stopwatch": "^1.5.0",
"@sapphire/time-utilities": "^1.7.8",
"@sapphire/type": "^2.2.6",
"dependencies": {
"@sapphire/framework": "^3.2.0-pr-512.244de39.0",
"@sapphire/plugin-editable-commands": "^2.0.1",
"@sapphire/plugin-i18next": "^4.0.1",
"@sapphire/plugin-logger": "^3.0.1",
"@sapphire/stopwatch": "^1.5.0",
"@sapphire/time-utilities": "^1.7.8",
"@sapphire/type": "^2.2.6",
@Favna update, fixed the error however the bot now does not respond to slash commands nor text commands
Favna
Favna2y ago
can't really help there. The quick test I did with a bot worked just fine. Check all your permissions and intents and such said test is with the code in musical-giggle fyi
Want results from more Discord servers?
Add your server