button
i am trying to put a button and when i am adding style it tells me buttonstyle is not defined ( i am doing whats written in the doc) and if i am only writing PRIMARY it says cannot get the colour
19 Replies
- What's your exact discord.js
npm list discord.js
and node node -v
version?
- Not a discord.js issue? Check out #other-js-ts.
- Consider reading #how-to-get-help to improve your question!
- Explain what exactly your issue is.
- Post the full error stack trace, not just the top part!
- Show your code!
- Issue solved? Press the button!
- ✅
Marked as resolved by OPimport buttomstyle from djs, basic js
i did
and whats your djs version
also that error is unrelated
latest
i'm nothign with that
npm ls discord.js and show the output
aah my node is outdated ig
thats installing
literally just copy
npm ls discord.js
read it wrong
first of all uninstall the packages that use 13.17
and import ButtonStyle
because the error shows you didnt
ii have like 100+ packages
i had this code for like 2 years
i left coding for an year bcz i had some personal work
remove the ones using 13.17
that will only cause more issues
any shortcut?
no
anyhow, we arent 3rd party support but you'll run into issues there. For your issue, import the ButtonStyle enum
ok
dont mark this as resolve please
Bud
This is the copy of my original project
I am copy and pasting the commands one by one from my original project
Other packages are using djs 13
I have fixed it