36 Replies
errors I get:
options defined as
ai says is something about labelBuilder, but at the same it has not up to date info on it since it's recent
how many channels are your trying to add? as options
that can be dynamic actually, what's the cap shoudl I put in? 25?
tag suggestion for @Mulo:
discord.js includes multiple sub-packages, installing these separately can mess with internal code:
yes, string select has a max of 25
looks like you're importing from /builders
that often messes up with validations
I mean sometimes it works tho
most of the time actually
ĀÆ\_(ć)_/ĀÆ
only took twice
it's a common issue here, not sure when it does break and when not but it does
great š
just import from djs and see if it fixes it
i do that
already
and you don't have the builders package installed separately?
the fact that most of the times works, it must mean (hopefully) that is how I format data.
Wanted to double check here
^^
mostly asking because of this:
at ModalBuilder.toJSON (/home/ubuntu/node_modules/@discordjs/builders/dist/index.js:2857:35)your modalbuilder goes directly to /builders, doesn't pass through discord.js could be a consequence of toJSON not defined in discord.js though, so it's better to confirm
how to check?
in your package.json
cant see any builders around, tho it does ring a bell
unless u meant the package.json of discord.js? @Amgelo
no, as that's public info
are you sure it's that particular modal that's erroring?
yes
i do have
yeah since that'll be installed by discord.js
it's unrelated
alright so it's a d.js bug as far as it's known?
I'll try to reproduce it locally, I think it looks fine
could be something on my end too, as sometimes it does work.
But errors do not explain much of what's the problem
yeah it's working for me locally
ai says it's the labelbuilder
but that's coz it doesnt know latest d.js
can you npm ls discord.js
and npm ls @discordjs/builders
that's what u meant before?
yes, but it looks fine currently
try nuking node_modules and reinstalling just in case
I can't reproduce the issue with that code
oh boy I really rather not š
you don't have that many packages so it shouldn't take that much
plus there's the npm cache
redis doesnt like uninstalling
plenty from other projects